how to find nth highest salary
Answer Posted / bharath
select distinct(sal) from emp a where 3 = (select
count(distinct(sal)) from emp b where a.sal<= b.sal)
replace 3 by 2 for second highest...
Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What are wait types?
What is partition index in sql server?
Can binary strings be converted into numeric or float data types?
What stored by the model?
Explain primary key in sql server?
What is set nocount on?
Explain DBCC?
What is candidate key with example?
What command do we use to rename a database?
What are the types of processing and explain each? : sql server analysis services, ssas
What’s the distinction between dropping a info and taking a info offline?
What programming language would you use to create embedded functions in ssrs?
What is the significance of null value and why should we avoid permitting null values?
How do I open a .db file?
What is abstracting periodical?