DBAsupport.com Forums - Powered by vBulletin
Results 1 to 2 of 2

Thread: Check to table of equality

  1. #1
    Join Date
    Jul 2006
    Posts
    6

    Check to table of equality

    Hello,

    I have two tables and want to find out all records which differ.

    The tables have the same columns and primary keys. The server has to look for each entry in table 1 if there is the same entry in table 2 with the same primary key.

    How to do?

    thanks,
    peterm

  2. #2
    Join Date
    Sep 2002
    Location
    England
    Posts
    7,334
    minus command

    select col1 from tab1 minus col2 from tab2

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width