Menu

So, if we want to join the sorted #temp1 but unsorted #temp2, this won’t work.

But this will work

But it will sort everything.

In case that there is no duplicate value issue, we can use UNION ALL  only if it’s ORACLE according to link.What about Microsoft?

Meh… 🙁