how to find the second highest salary from emp table?
Answer Posted / gurvinder
select max(sal)from emp where sal in(select sal from emp minus select max(sal) from emp);
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is information schema in sql?
How do I run a pl sql procedure in sql developer?
What is scalar and vector?
How to get unique records from a table?
what is a tablespace? : Sql dba
what is the difference between ereg_replace() and eregi_replace()? : Sql dba
What are the 3 modes of parameter?
Can we create foreign key without primary key?
Explain locks? : Transact sql
How do you declare a user-defined exception?
What do you understand by case manipulation functions?
What operators deal with null?
how to include comments in sql statements? : Sql dba
What packages(if any) has oracle provided for use by developers?
What is linq to sql?