Re: efficient compare

From: -CELKO- <jcelko212_at_earthlink.net>
Date: 21 Apr 2006 09:56:03 -0700
Message-ID: <1145638563.747399.287680_at_v46g2000cwv.googlegroups.com>


>> ind out what is missing so that I can transfer whatever is needed from A to B and whatever is needed from B to A such that A=B. <<

Straight forward in Standard SQL.

BEGIN
INSERT INTO B
SELECT *
  FROM A EXCEPT B; INSERT INTO A
SELECT *
  FROM B EXCEPT A;
END; I am assuming that A and B are identical in structure (UNION compatible). But that leads to the question as to why there are two tables for one set of entities. Received on Fri Apr 21 2006 - 18:56:03 CEST

Original text of this message