If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > PostgreSQL > compare two tables

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-16-11, 11:20
runnen runnen is offline
Registered User
 
Join Date: Jun 2011
Posts: 2
compare two tables

Hey guys,
so i have two tables with date's attached to each row. But in table A there are 10 more rows than in table B. I need to find where the dates of the two tables do not match up; aka i need to find unique date values between the two tables. ive tried different select with distinct modifiers but have yet to come up with a solution. Any help would be great
Reply With Quote
  #2 (permalink)  
Old 06-17-11, 03:32
futurity futurity is offline
Registered User
 
Join Date: May 2008
Posts: 270
Showing some sample data with expected output would help.
Reply With Quote
  #3 (permalink)  
Old 06-20-11, 10:42
runnen runnen is offline
Registered User
 
Join Date: Jun 2011
Posts: 2
thanks for the offer but i figured it out.
I used a LEFT OUTER JOIN on the date columns of each and just scanned the results for discrepancies
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On