Yesterday I posted a puzzle SQL SERVER – Simple Puzzle Using Union and Union All, today we will see the answer of this. Following image explains the answer of puzzle.
You can read the explanation of why this is answer read my previous article SQL SERVER – Union vs. Union All – Which is better for performance?
Reference : Pinal Dave (https://darkslategrey-bat-805937.hostingersite.com)