how to find the second highest salary from emp table?
Answer Posted / sankar
select * from emp where sal=(select max(sal) from emp where
sal not in(select max(sal) from emp))
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is sql prepared statement?
Why commit is not used in triggers?
How to create an array in pl/sql?
What is the maximum number of triggers, you can apply on a single table?
How do I order by ascending in sql?
What are literals in sql server?
How does an execution block start and end in pl sql?
What is thread join () in threading?
What is the difference between unique and primary key constraints?
What do you mean by table in sql?
How to rename a column in the output of sql query?
Which join is like an inner join?
What is sqlite used for?
When is the update_statistics command used?
What are the two virtual tables available at the time of database trigger execution?