how to find nth highest salary
Answer Posted / affu
select salary from table t where n-1=(select distinct count
(sal) from table t1 where t1.sal>t.sal)
Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
How you would rewrite the sql query to return the customerid sorted numerically?
What are the results of running this script?
How do you manipulate data?
What is function of ROLLUP ?
Does group by sort data?
List some major differences between triggers and stored procedures?
What is trigger explain with program?
what is the difference between Delete and Truncate command in SQL
What is a join in sql? What are the types of joins?
How can you find out which stored procedures are recompiling?
Is the log file is a part of file group?
List the types of recovery model available in sql server?
You want to generate a report that is formatted as a chart. Can you use the report wizard to create such a report?
How can you insert null values in a column while inserting the data?
Is resultset an interface?