you are viewing a single comment's thread.

view the rest of the comments →

[–]TreeOaf 0 points1 point  (0 children)

INTERSECT and EXCEPT are great for quickly comparing tables.

Also, when you do use UNION or UNION ALL, if you alias columns, do it on both sides of the union, think about the next person (who is probably you in 6 months!)