Suppose that you are given the following simple database table called Employee that has 2 columns named Employee ID and Salary:
Employee Employee ID S
Not really a nice query but :
SELECT * from ( SELECT max(Salary) from Employee ) as a LEFT OUTER JOIN (SELECT MAX(Salary) FROM Employee WHERE Salary NOT IN (SELECT MAX(Salary) FROM Employee )) as b ON 1=1