how to find the second highest salary from emp table?
Answer Posted / ravi
SELECT TOP 1 salary
FROM (
SELECT DISTINCT TOP n salary
FROM employee
ORDER BY salary DESC) a
ORDER BY salary
where n is the nth highest salary
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
How do I trace sql profiler?
Which is faster joins or subqueries?
What is oracle pl sql developer?
What is sql in java?
Explain how to use transactions efficiently : transact sql
What do you mean by table in sql?
What are user defined functions?
What is sql data?
how can we repair a mysql table? : Sql dba
what is the functionality of the function htmlentities? : Sql dba
How do you use join?
What is the source code of a program?
What are the different types of joins in sql?
How to install oracle sql developer?
What is sql not null constraint?