Re: How to find entries missing in 2nd table? - Mailing list pgsql-sql

From Frank Bax
Subject Re: How to find entries missing in 2nd table?
Date
Msg-id 5.2.1.1.0.20060711115934.00a4f2e0@pop6.sympatico.ca
Whole thread Raw
In response to How to find entries missing in 2nd table?  (alex-lists-pgsql@yuriev.com)
List pgsql-sql
At 10:19 AM 7/11/06, alex-lists-pgsql@yuriev.com wrote:
>control:
>         ....
>         controller_id   pk;
>
>datapack:
>
>         controller_id   fk;
>
>I need to get all entries from the table control that are not listed in
>datapack.


select controller.controller_id from controller
left join datapack on controller.controller_id = datapack.controller_id
where datapack.controller_id is null;



pgsql-sql by date:

Previous
From: Bryce Nesbitt
Date:
Subject: Re: Can function results be used in WHERE?
Next
From: Richard Broersma Jr
Date:
Subject: Re: How to find entries missing in 2nd table?