find out the second highest salary?
Answer Posted / thananjayan
SELECT * FROM 'emp` WHERE salary < ( SELECT max( salary
)FROM emp ) ORDER BY salary DESC LIMIT 1
This is Mysql syntax, if you use Oracle just remove LIMIT 1
and put it ROWNUM=1;
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Give the constructs of a package, function or a procedure.
What happens in oracle commit?
Explain the features of oracle?
Will you be able to store pictures in the database?
How to create a new table in your schema?
How to use "if" statements on multiple conditions?
How many objectname will be created for a single table drop function? Why 'flashback' query giving error "ORA-38312: original name is used by an existing object" while getting the table?
What language does oracle use?
Explain index?
how to do daily transactions with out sql* loader control file regesterd in apps?
How to invoke the data pump import utility?
What are the restrictions on external table columns?
Can any one explain me when i execute below query.. select months_between('07-JUL-12','10-FEB-12') from dual; Out put:- 4.90322581 How oracle calculate?
How to invoke the data pump export utility?
What is not equal to in oracle?