Re: RE: Help with query. (*) - Mailing list pgsql-sql

From Josh Berkus
Subject Re: RE: Help with query. (*)
Date
Msg-id 3A66074D.827227D0@agliodbs.com
Whole thread Raw
In response to RE: Help with query. (*)  ("Diehl, Jeffrey" <jdiehl@sandia.gov>)
List pgsql-sql
Mike,
In that case, you want to use this construction:

DELETE FROM a 
WHERE EXISTS ( SELECT 1 FROM bWHERE b.1 = a.1  AND b.2 = a.2  AND b.3 = a.3 );

Of course, a good primary keying system would make this somewhat less
complex ...
                -Josh Berkus
-- 
______AGLIO DATABASE SOLUTIONS___________________________                                       Josh Berkus  Complete
informationtechnology      josh@agliodbs.com   and data management solutions       (415) 436-9166  for law firms, small
businesses      fax  436-0137   and non-profit organizations.       pager 338-4078                               San
Francisco


pgsql-sql by date:

Previous
From: "Diehl, Jeffrey"
Date:
Subject: RE: Help with query. (*)
Next
From: Keith Gray
Date:
Subject: Re: Boolean and Bit