Write a query to find second highest salary of an employee.
Answer Posted / preetir
select min(sal) from (select distinct sal from emp order by
desc where rownum < 2)
Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
Are sql connections encrypted?
What are sql functions? Describe in brief different types of sql functions?
What does fetching a cursor do?
Mention what does plvtab enables you to do when you showthe contents of pl/sql tables?
what is subquery? : Sql dba
What is dbo in sql?
how can we transpose a table using sql (changing rows to column or vice-versa) ? : Sql dba
Can you join views in sql?
What is count * in sql?
How do I tune a sql query?
How do you optimize a stored procedure in sql?
What is dynamic sql in pl sql?
How does a self join work?
What are the different tcl commands in sql?
What is embedded sql what are its advantages?