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 is sql basics?
Which join is like inner join?
Can we call dml statement in function?
Explain the difference between triggers and constraints?
What are triggers and its types?
how many sql ddl commands are supported by 'mysql'? : Sql dba
Is sql injection illegal?
How does postgresql compare to oracle/db2/ms sql server/informix?
What is varchar sql?
Which sql statement is used to delete data from a database?
What is the difference between database trigger and stored procedure?
What are the different types of dbms?
What is Collation Sensitivity ? What are the various type ?
Explain the types of joins in sql?
What are the sql commands?