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 the difference between functions, procedures, and packages in pl/sql?
How to check if a column is nullable before setting to nullable?
What are dml commands?
Explain the methods used to protect source code of pl/sql.
Which nosql database is best?
What is pl sql architecture?
what are ddl statements in mysql? : Sql dba
What is mutating trigger?
Which is faster count (*) or count 1?
what is a trigger in mysql? : Sql dba
Difference between table function and pipelined function?
What is the use of pl/sql table?
What does desc stand for?
What is primary key and unique key?
What does closing a cursor do?