how to find nth highest salary
Answer Posted / ramakrishna
select e1.* from emp e1 where n=(select
count(distinct(e2.sal)) from emp e2 where e1.sal<=e2.sal);
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
Can binary strings be converted into numeric or float data types?
What do you understand by the analysis services in sql server?
What is sparse columns of sql server 2008?
Explain the dbcc pintable command when would you use it?
Can I disable or restrict ssrs export formats (rendering formats)?
What are logical database components? : SQL Server Architecture
What is BLOCK statements in SQL?
What is equi join with example?
sql database suspect We have a sql database that is showing as suspect. How can we recover?
on line cluster can we make if yes tell me the procedure
What command would you use to create an index?
Why we use functions in sql server?
How to turn on the mssql api module in php?
What is nonclustered index on computed columns?
How can I tell if sql server is 32 or 64 bit?