pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Huxton <dev@archonet.com>
To: U K Laxmi <laxmiuk@yahoo.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: comparing 2 tables
Date: Tue, 15 Mar 2005 09:52:44 +0000
Message-ID: <4236B06C.3050601@archonet.com> (raw)
In-Reply-To: <20050315093616.81023.qmail@web20023.mail.yahoo.com>
References: <20050315093616.81023.qmail@web20023.mail.yahoo.com>

U K Laxmi wrote:
> I've two Ms Access tables with the same structure.

This is a PostgreSQL list - you'd probably be better using a 
Microsoft-Access list.

[snip]
> Here what we should observe is, 1st row in table 1 not
> present in table2. 2nd row in table1 is modified in
> table2. 3rd row in table 2 is not present in table1.
> So, after comparing table 1 and table2, the
> differences are captured as old and new. Old referes
> to table1 data and new referes to table2 data. The
> rows that are equal in both table 1 and table 2 should
> not be captured in table 3.
> 
> Is itpossible to do this in Ms Access? If so, how.

In general terms, with MS-Access, I'd build separate queries for each 
step. So you'd want a query for:
1. Reset table3
2. Insert to table3 rows in table1 and not in table2
3. Insert to table3 rows in table2 and not in table1
...etc...

HTH
--
   Richard Huxton
   Archonet Ltd



view thread (14+ messages)  latest in thread

Message-ID: <4236B06C.3050601@archonet.com>
Permalink:  ../4236B06C.3050601@archonet.com/
Also on:    postgresql.org/message-id/4236B06C.3050601@archonet.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: dev@archonet.com, laxmiuk@yahoo.com
  Subject: Re: comparing 2 tables
  In-Reply-To: <4236B06C.3050601@archonet.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox