Thanks for same; substituting 'e.rn = 2' with 'e.rn <= 2' is giving me both highest and 2nd highest in 2 rows; can it be done in single row separated by comma.
Hi
Hope this helps
SELECT
STRING_AGG(CONCAT(EmpName, ' - $', SALARY), ', ') AS EmployeeSalaries
FROM
(SELECT TOP 2 EmpName, SALARY
FROM Employee
ORDER BY SALARY DESC) AS TopSalaries;