Re: compare 2 tables in sql

From: "Tena Sakai" <tsakai(at)gallo(dot)ucsf(dot)edu>
To: "Jonah H(dot) Harris" <jonah(dot)harris(at)gmail(dot)com>
Cc: <pgsql-sql(at)postgresql(dot)org>
Subject: Re: compare 2 tables in sql
Date: 2008-03-20 02:45:02
Message-ID: FE44E0D7EAD2ED4BB2165071DB8E328C0378F13B@egcrc-ex01.egcrc.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Fantastic! Many thanks.

Regards,

Tena Sakai

-----Original Message-----
From: pgsql-sql-owner(at)postgresql(dot)org on behalf of Jonah H. Harris
Sent: Wed 3/19/2008 3:39 PM
To: Tena Sakai
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: [SQL] compare 2 tables in sql

On Wed, Mar 19, 2008 at 1:56 PM, Tena Sakai <tsakai(at)gallo(dot)ucsf(dot)edu> wrote:
> Is there a sql way to compare (in a diff/cmp sense)
> 2 tables? For example,

SELECT * FROM foo
EXCEPT
SELECT * FROM moo;

--
Jonah H. Harris, Sr. Software Architect | phone: 732.331.1324
EnterpriseDB Corporation | fax: 732.331.1301
499 Thornall Street, 2nd Floor | jonah(dot)harris(at)enterprisedb(dot)com
Edison, NJ 08837 | http://www.enterprisedb.com/

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Rodrigo E. De León Plicet 2008-03-20 03:03:58 Re: Date and filling issues
Previous Message Osvaldo Kussama 2008-03-20 02:36:08 Re: Date and filling issues