Find out the 3rd highest salary?
Answer Posted / vivek
SELECT v.Emp_Sal
FROM Employee_Test v
WHERE 3=
(
SELECT COUNT(DISTINCT z.Emp_Sal)
FROM Employee_Test z
WHERE v.Emp_Sal<=z.Emp_Sal
)
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What does subquery mean in sql?
How bulk collect improves performance?
Why trigger is used in sql?
What is pl sql block structure?
What is difference between db2 and sql?
What are the operators used in select statements?
How do you explain an index number?
What is rollback?
What is set serveroutput on?
what is log shipping? : Sql dba
What are tables and fields in the database?
what is online transaction processing (oltp)? : Sql dba
When is the explicit cursor used ?
Why do we use %rowtype & %type in plsql?
How do you get column names only for a table (sql server)?