RE: Query Help

From: "Francis Solomon" <francis(at)stellison(dot)co(dot)uk>
To: "Brian C(dot) Doyle" <bcdoyle(at)mindspring(dot)com>, <pgsql-sql(at)postgresql(dot)org>
Subject: RE: Query Help
Date: 2000-12-27 16:47:34
Message-ID: NEBBIFFPELJMCJAODNPKIEEJCEAA.francis@stellison.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hi Brian,

Try something like this:

SELECT firstname FROM table1 WHERE firstname NOT IN (SELECT firstname
FROM table2 WHERE table2.date='yesterday'::date);

Hope this helps.

Francis Solomon

>
> What do I have to do a query where information in table1 is
> not in table2
>
> I am looking for something like
>
> Select table1.firstname where table1.firstname is not in
> table2.firstname
> and table2.date='yesterday'
>
> I tried
> Select table1.firstname where table1.firstname !=
> table2.firstname and
> table2.date='yesterday'
>
> and that did not work just listed everyone....

In response to

  • Query Help at 2000-12-27 16:20:53 from Brian C. Doyle

Browse pgsql-sql by date

  From Date Subject
Next Message Yury Don 2000-12-27 17:01:07 Re: Query Help
Previous Message Brian C. Doyle 2000-12-27 16:20:53 Query Help