Union makes it so that many of them are selected together, so the case when it would be better in general IMHO if the from operator is not so complicated and all other things are equal. But they are NOT similar sql results:
A "Case when ..." will add another horizontal row, and by default the join of the select element should have as many columns in the set as union'd, so it will add more rows. For example, if you query three separate tables and then combine them together, you make three choices, however, if you just made three cases where it would be effective if you would query one table. But you can request five. Without knowing the source, the answer is actually: "it depends."
I just set the ole 'statistics setup time when you make a quick timing for the SQL engine. People may argue about semantics, but the engine does not lie when it tells you what is happening. SQL 2005 and above, I believe, also has "include the actual execution plan" in the menu bar. This is a beautiful-looking small three-dimensional icon in the shape of an L with a dot L located in the upper left corner. If you have something very complicated, and you really go into the fine-tuning, which is the tool of choice for exploring what the engine does under the hood with your request.
source share