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

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 (view raw or flat)
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

pgsql-sql by date

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

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