Re: help on a query - Mailing list pgsql-sql

From sad
Subject Re: help on a query
Date
Msg-id 200410080844.23298.sad@bankir.ru
Whole thread Raw
In response to Re: help on a query  (Thomas F.O'Connell <tfo@sitening.com>)
List pgsql-sql
On Friday 08 October 2004 07:10, Thomas F.O'Connell wrote:
> A query that should get the job done is:
>
> SELECT registration_id
> FROM registrations r
> WHERE NOT EXISTS (
>     SELECT 1
>     FROM receipts
>     WHERE registration_id = r.registration_id
> );

Don't, PLEASE, don't !!!

drive this way :

SELECT r.registration_idFROM registrations AS r
LEFT OUTER JOIN receipts AS recON rec.registration_id = r.registration_id
WHERE rec.registration_id IS NULL;




pgsql-sql by date:

Previous
From: Thomas F.O'Connell
Date:
Subject: Re: help on a query
Next
From: "CHRIS HOOVER"
Date:
Subject: Re: help on a query