how to find nth highest salary
Answer Posted / dewashish kumar pal
select salary from tablename t where (n-1)= (select count(*) from tablename where salary > t.salary);
note:- t = tablename
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Is the log file is a part of file group?
What are a database and a data warehouse?
What are the purposes and advantages stored procedure?
What program is used to store the data source file?
What is ms sql server triggers?
What are scalar functions?
What stored procedure can you use to display the current processes?
How you can change a cross join into an inner join?
What are sql server functions?
What is data source document?
Does sql server use t sql?
Does transparent data encryption provide encryption when transmitting data across the network?
You want to check the syntax of a complicated update sql statement without executing it. What command should you use?
Is foreign key unique?
What command is used to rename the database?