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

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

pgsql-sql by date

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

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