find out the second highest salary?
Answer Posted / shalini
SELECT ID,NAME,SAL,ROWNUM
FROM EMP
ORDER BY ID DESC
WHERE ROWNUM=2
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
How to create an oracle database manually?
Her departmandaki isçilerden empno' su ikinci sirada olan isçilerin empno, deptno, hiredate, sira_no bigilerini döndüren sorguyu yaziniz?
How to assign values to data fields in record variables?
What do you mean by merge in oracle and how can we merge two tables?
How do I find the database name in oracle?
Provide an example of a shell script which logs into SQLPLUS as SYS, determines the current date, changes the date format to include minutes & seconds, issues a drop table command, displays the date again, and finally exits.
Explain integrity constraint?
does the query needs a hint to access a materialized view?
What is a synonym? What are its various types?
How to count duplicated values in a column in oracle?
How do I spool in oracle?
Describe an oracle table?
How to assign values to variables?
What are the differences between char and varchar2 in oracle?
What is the difference between online and offline backups?