how to find the second highest salary in a given table????
Answer Posted / mahesh
SELECT *
FROM (SELECT ROWNUM sl, salary
FROM (SELECT DISTINCT salary
FROM employees
ORDER BY salary))
WHERE sl = n
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
src name sex a,male b,female c,male d,female Required output : male female a,b c,d tried pivot but was not successfull select * from src pivot (max(name) for sex in ('MALE','FEMALE'));
How can I create database in oracle?
Explain parameter file in oracle.
Please explain oracle data types with examples?
How to rename an index?
How to sort the query output in oracle?
How can you tell how much space is left on a given file system and how much space each of the file systems subdirectories take-up?
Explain the truncate in oracle?
What are the logical operations?
How to build data dictionary view an new database?
Why do I get java.lang.abstractmethoderror when trying to load a blob in the db?
Can you tell me how to add new column in existing views?how?How is possible?
How to use "in out" parameter properly?
How to do clean up if create database failed?
What are the major difference between truncate and delete?