Skip site navigation (1) Skip section navigation (2)

Substract queries

From: "Nacef LABIDI" <nacef(dot)l(at)gmail(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Substract queries
Date: 2008-05-22 15:15:12
Message-ID: f16f7ea00805220815h379c82c9q37bf2315df67916b@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-sql
Hi all,

I was wondering how can I substract result between select queries. I mean I
want to issue a query that does this :
(select * from mytable where condition1) - (select * from mytable where
condition2)

Thanks to all

Nacef

Responses

pgsql-sql by date

Next:From: Robins TharakanDate: 2008-05-22 15:27:15
Subject: Re: Substract queries
Previous:From: Karl DenningerDate: 2008-05-22 01:12:34
Subject: Re: SQL question....

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group