Re: EXCEPT Queries

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: Mark Mitchell <mark(at)lapcrew(dot)com>, pgsql-sql(at)postgresql(dot)org
Subject: Re: EXCEPT Queries
Date: 2003-02-20 06:45:15
Message-ID: 200302192245.15808.josh@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Mark,

> SELECT
> "A"."SUBSCRIBER_NAME" , "A"."ACCOUNT_NUMBER"
> FROM "A"
> WHERE
> "A"."ACCOUNT_NUMBER"
> NOT IN
> (
> SELECT
> "B"."ACCOUNT_NUMBER"
> FROM "B"
> )

Use "WHERE NOT EXISTS" instead. See the documentation on SELECT for how to
write this clause.

--
Josh Berkus
Aglio Database Solutions
San Francisco

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Peter Childs 2003-02-20 08:29:17 Re: EXCEPT Queries
Previous Message Josh Berkus 2003-02-20 06:14:24 Re: problem on truncate for v.7.3.2