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
What is the difference between a user and a schema in oracle?
What are the limitations oracle database 10g xe?
Why should I use oracle database?
How to drop a stored function?
Can multiple cursors being opened at the same time?
What is a lookup table in oracle?
Her departmandaki isçilerden empno' su ikinci sirada olan isçilerin empno, deptno, hiredate, sira_no bigilerini döndüren sorguyu yaziniz?
material view and view disadvantages?
How to install oracle database 10g xe?
How do I escape a reserved word in oracle?
How will you differentiate between varchar & varchar2?
how to convert .db (extention) database file into .dmp (extention ) for oracle database ?
Difference between pre-select and pre-query
What is an external table?
Can you create a synonym without having a table?