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
Can there be more than one function with a similar name in a pl/sql block?
what is column? : Sql dba
What is varray in pl sql?
What is trigger with example?
If a cursor is open, how can we find in a pl/sql block?
Why do we use procedures?
How to write html code in pl sql?
Why do we need a foreign key?
Are pl sql variables case sensitive?
Why functions are used in sql?
What is a native sql query?
What is the difference between syntax error and runtime error?
Is foreign key mandatory?
Can we use distinct and group by together?
What are records give examples?