Good Day. So, everythign is in the title :)
I am looking to merge the result of two requests and order the result together (as in not one after the other). => I was
To expand on my comment:
SELECT * into #tempTable FROM ( SELECT * FROM user_relation WHERE from_user_id = 1 UNION SELECT * FROM user_relation WHERE to_user_id = 1 ) as x SELECT * FROM #tempTable ORDER BY trust_degree DROP TABLE #temptable