SELECT TOP 1 salFROM (SELECT MAX(sal) AS sal FROM sal1UNIONSELECT MAX(sal) AS sal FROM sal2) a ORDER BY sal DESC