Comparing Tables In T-SQL

sqlinsix(58)
Published in
#data
Words
141
Reading
1 min
Listen
Play
6y

Check out the solution in the video TSQL: Compare Tables. As you can see, we compare data in the two tables to identify where rows of data don't match (or don't exist). There are other techniques we can use to solve this.

Some examples we see in the video:

  • Handling data that doesn't match
  • Rows that may not exist
  • What we don't look at

Automating ETL
Check out the highest-rated Automating ETL course on Udemy, if you're interested in data.

When solving for this problem, we want to consider performance. Be careful about looking at more data than required - for instance, it's possible that we may only want to compare the identifiers in the tables. We may have the same identifiers, but other columns of data differ (very costly, but possible).

YouTube | Automating ETL | T-SQL In 2 Hours | Consumer Guide To Digital Security

Comparing Tables In T-SQL | Ecency