how to retrieve the top 3 salaries of the table using rownum
Answer Posted / seema
select sal from (select distinct sal from emp order by sal
desc ) where rownum < 3;
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
what is the use of set statement in tsql? : Transact sql
Can a table have no primary key?
What is join view in sql?
What are sql procedures?
What are tables and fields in the database?
How many parts of a pl sql block are optional?
How can I tell if sql is running?
Why is a primary key important?
What is the importance of sqlcode and sqlerrm?
What is mutating table error?
How do I write a sql query in pgadmin 4?
What is difference between table and view?
What is difference between left and right outer join?
Can we join same table in sql?
What is record data type?