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

From Richard Broersma Jr
Subject Re: How to find entries missing in 2nd table?
Date
Msg-id 20060711170339.65498.qmail@web31809.mail.mud.yahoo.com
Whole thread Raw
In response to How to find entries missing in 2nd table?  (alex-lists-pgsql@yuriev.com)
List pgsql-sql

--- Richard Broersma Jr <rabroersma@yahoo.com> wrote:

> > >> I need to get all entries from the table control that are not listed in
> > >> datapack.
> > > 
> > > SELECT C.CONTROLLER_ID
> > > 
> > > FROM CONTROL AS C 
> > >   LEFT JOIN DATAPACK AS D ON ( C.CONTROLLER_ID = D.CONTROLLER_ID)
> > > 
> > > WHERE D.CONTROLLER_ID IS NULL;
> > > 
> > 
> > 
> > Or
> > (SELECT controller_id FROM control)
> > EXCEPT
> 
> Good point!  But don't forget to include the list. :-)
> 
> Regards,
> 
> Richard Broersma Jr.
> > (SELECT controller_id FROM datapack)
> > ?
> > 
> > -- 
> > Milen A. Radev
> > 
> 
> 



pgsql-sql by date:

Previous
From: Frank Bax
Date:
Subject: Re: How to find entries missing in 2nd table?
Next
From: "Daniel Caune"
Date:
Subject: Invalid memory alloc request size