Re: compare 2 tables in sql

From: "Jonah H(dot) Harris" <jonah(dot)harris(at)gmail(dot)com>
To: "Tena Sakai" <tsakai(at)gallo(dot)ucsf(dot)edu>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: compare 2 tables in sql
Date: 2008-03-19 22:39:34
Message-ID: 36e682920803191539i634ad367h14644ccf6b3b1661@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-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

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Osvaldo Kussama 2008-03-20 02:36:08 Re: Date and filling issues
Previous Message Dean Gibson (DB Administrator) 2008-03-19 22:00:31 Re: compare 2 tables in sql