Re: Abfrage nach einer Reihe von Jahren

Andreas Gaab <[email protected]>
Newsgroups gmane.comp.db.postgresql.german
Message-ID <48DA836F3865C54B8FBF424A3B775AF6A1AF5D1103@Exchange-Server>
Hallo Gunnar,

Die where-Klausel sollte wohl ver-odert werden:

WHERE
   EXTRACT (year from mzb.date) = 1999 OR
   EXTRACT (year from mzb.date) = 2000 OR
   EXTRACT (year from mzb.date) = 2001 OR
   EXTRACT (year from mzb.date) = 2002

Alternativ sollte folgendes auch klappen:

WHERE
   mzb.date > '01.01.1999'::timestamp AND 
   mzb.date < '31.12.2002'::timestamp

Gruss
Andreas


-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]] Im Auftrag von Gunnar Oehmichen
Gesendet: Mittwoch, 2. Oktober 2013 12:37
An: [email protected]
Betreff: [pgsql-de-allgemein] Abfrage nach einer Reihe von Jahren



-- 
Sent via pgsql-de-allgemein mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-de-allgemein
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.