Best way to compare contents of two tables in Teradata?

Posted by Cade Roux on Stack Overflow See other posts from Stack Overflow or by Cade Roux
Published on 2010-03-18T17:44:27Z Indexed on 2010/03/18 19:51 UTC
Read the original article Hit count: 503

Filed under:
|
|

When you need to compare two tables to see what the differences are, are there any tools or shortcuts you use, or do you handcode the SQL to compare the two tables?

Background: In my SQL Server environment, I created a stored procedure which inspects the metadata of the two tables/views, creates a query (as dynamic sql) which joins the two tables on the specified key columns, and compares data in the compare columns, reporting key differences and data differences. The query can either be printed and modified/copied or just excecuted as is. We are not allowed to create stored procedures in our Teradata environment, unfortunately.

© Stack Overflow or respective owner

Related posts about teradata

Related posts about data-comparison