RE: Data Comparison
- From: Vern Rabe <VernRabe@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 20 Aug 2009 16:21:01 -0700
You can also use EXCEPT, e.g.,
SELECT Col1, Col2... FROM Table1
EXCEPT
SELECT Col1, Col2... FROM Table2;
Then do it in the opposite order, e.g.,
SELECT Col1, Col2... FROM Table2
EXCEPT
SELECT Col1, Col2... FROM Table1;
Vern Rabe
"Mary Phelps" wrote:
I have two tables with identical columns. I would like to write to.
query to compare the data betweeen the two tables. When I find any
data mismatching between tables, I would like the query to return that
data.
- Follow-Ups:
- Re: Data Comparison
- From: Mary Phelps
- Re: Data Comparison
- References:
- Data Comparison
- From: Mary Phelps
- Data Comparison
- Prev by Date: Re: Using % for a range of numbers
- Next by Date: RE: @@ROWCOUNT=1 and @@ERROR<>0 possible?
- Previous by thread: RE: Data Comparison
- Next by thread: Re: Data Comparison
- Index(es):
Relevant Pages
|