how to retrieve the top 2 salaried persons from a database?
Answer Posted / arun
select salary from(select salary from(select distinct salary from employees order by salary desc) where rownum<=2 order by salary) where rownum=1;
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How does left join work in sql?
What is an escape character in sql?
How can a function retun more than one value in oracle with proper example?
How is sql used in oracle?
Explian rowid, rownum? What are the psoducolumns we have?
How delete all records from table in sql?
What is mutating error?
What is sql select statement?
What is java sql package?
Do triggers have restrictions on the usage of large datatypes, such as long and long raw?
Difference between truncate, delete and drop commands?
What are the constraints available in sql?
How do you get column names only for a table (sql server)?
What are the conditions an underlying table must satisfy before a cursor can be used by a positioned update or delete statement? : Transact sql
What is sqlexception in java?