Question: I have an SQL function which returns a list of files
now I should join an additional list to that list with an union, but only if the user is admin.
Is
SELECT * FROM table1 UNION ALL SELECT * FROM table2 WHERE @isAdmin = 1