Re: Abfrage nach einer Reihe von Jahren
Andreas Kretschmer <[email protected]> Wed, 2 Oct 2013 15:31:41 +0200
| Newsgroups | gmane.comp.db.postgresql.german |
|---|---|
| Message-ID | <20131002133141.GA1801@tux> |
Andreas Kretschmer <[email protected]> wrote: > test=*# select probe, array_agg(jahr) from gunnar group by probe having > array[1,2,3] = array_agg(jahr); > probe | array_agg > -------+----------- > 10 | {1,2,3} > (1 row) > > > Es gibt noch ca. 127399 andere Wege ... besser vielleicht die Arrays mit @> untersuchen, also CONTAINS statt Gleichheit. Andreas -- Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effect. (Linus Torvalds) "If I was god, I would recompile penguin with --enable-fly." (unknown) Kaufbach, Saxony, Germany, Europe. N 51.05082°, E 13.56889° -- Sent via pgsql-de-allgemein mailing list ([email protected]) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-de-allgemein