Click to See Complete Forum and Search --> : SQL stateent to find 5th Highest salary


muralirajan
August 11th, 1999, 07:20 AM
Please send me the SQL Statement to find the Employee row who is getting the 5th highest salary?


muralirajan

Lothar Haensler
August 11th, 1999, 07:26 AM
if you database supports the "SELECT TOP n"-Syntax (e.g. SQLServer 7) you can try "SELECT TOP 5 * FROM ... ".
Since the return value can be more then 1 employee, you'd have to read all values.