how to retrieve the top 3 salaries of the table using rownum
Answer Posted / chiru
select sal from (select distinct sal from emp order
by sal desc)
where rownum<4 ;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
what is try_catch block in procedure
What is difference between procedure and trigger?
How to use transactions efficiently : transact sql
Can we create index on primary key?
Does varchar need length?
Explain table and field in sql?
how do you know if your mysql server is alive? : Sql dba
What is difference between hql and sql?
Where is pl sql used?
What is procedure explain with program?
What is data control language?
what are the performance and scalability characteristics of mysql? : Sql dba
How to select the Nth maximum salary from Table Emp in Oracle SQL Plus ?
where are cookies actually stored on the hard disk? : Sql dba
What are the different types of dbms?