Microsoft SQL Server
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMicrosoft SQL Server

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old March 25th, 2004, 02:22 PM
cmarkovitz cmarkovitz is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 1 cmarkovitz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy HELP! Comparing 2 linked tables

I am trying to compare 2 linked tables (to comma delimited files) one comes from our production environment, and the other from the QA environment. Each file has the same amount of columns, in the SAME order. I need to compare the fields between both files to determine if they match. There is no primary key per se, but I have set up a union of the two files.

Any thoughts/suggestions?

Thanks.

craig

Reply With Quote
  #2  
Old March 25th, 2004, 07:12 PM
Brick1235 Brick1235 is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 31 Brick1235 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Red face

I don't know i can help or not, I can't really picture what you said.

U want to compare the 2 tables and one more table from another database issit?

Select <Column1>, ... From <Table1> (Inner Join | Left Join) <Database1>.dbo.<Table2> on <Column1> = <Database1>.dbo.<Table2>.<Column1>
Order by ...
Group by ...

Does this help? Sorry I only know simple SQL trying to learn more advance ones now.

NHK

Quote:
Originally Posted by cmarkovitz
I am trying to compare 2 linked tables (to comma delimited files) one comes from our production environment, and the other from the QA environment. Each file has the same amount of columns, in the SAME order. I need to compare the fields between both files to determine if they match. There is no primary key per se, but I have set up a union of the two files.

Any thoughts/suggestions?

Thanks.

craig

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMicrosoft SQL Server > HELP! Comparing 2 linked tables


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway