how to find the second highest salary from emp table?
Answer Posted / r.arjunarao
select a.sal from emp a where 2=(select count(distinct(b.sal)) from emp b where b.sal>=a.sal)
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
how to create a new table by selecting rows from another table in mysql? : Sql dba
Why do we use procedures in sql?
Can a trigger call a stored procedure?
What is sql constant?
What is partition in sql query?
Why stored procedures are faster than query?
How to rename a table?
What is the clause we need to add in function body to return variable?
Where can I learn sql for free?
Is sql port 1433 encrypted?
Explain how exception handling is done in advance pl/sql?
When is the explicit cursor used ?
Explain the update statement in sql
How do I pipe the output of one isql to another?
Which command is used to delete a trigger?