From: | Yury Don <yura(at)vpcit(dot)ru> |
---|---|
To: | pgsql-sql(at)postgresql(dot)org |
Subject: | Re: Query Help |
Date: | 2000-12-27 17:01:07 |
Message-ID: | 1593069435.20001227220107@vpcit.ru |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
Hello Brian,
Wednesday, December 27, 2000, 9:20:53 PM, you wrote:
BCD> What do I have to do a query where information in table1 is not in table2
BCD> I am looking for something like
BCD> Select table1.firstname where table1.firstname is not in table2.firstname
BCD> and table2.date='yesterday'
BCD> I tried
BCD> Select table1.firstname where table1.firstname != table2.firstname and
BCD> table2.date='yesterday'
BCD> and that did not work just listed everyone....
If I understand correctly
Select table1.firstname from table1 where not exists
(select table2.firstname from table2 where table1.firstname = table2.firstname and
table2.date='yesterday')
--
Best regards,
Yury mailto:yura(at)vpcit(dot)ru
From | Date | Subject | |
---|---|---|---|
Next Message | patrick.jacquot | 2000-12-28 09:54:43 | Re: Query Help |
Previous Message | Francis Solomon | 2000-12-27 16:47:34 | RE: Query Help |