how to retrieve the top 3 salaries of the table using rownum
Answer Posted / moorthy(information dynamic)
select sal,rank()over (order by sal desc) from emp where
rownum < = 3;
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What does the base_object_type column shows in the user.triggers data dictionary view?
what are the 'mysql' command line arguments? : Sql dba
How do I count rows in sql?
how are mysql timestamps seen to a user? : Sql dba
What do you think about pl/sql?
How to raise user-defined exception with custom sqlerrm ?
What are the two types of exceptions in pl/sql?
Can I create table without primary key?
What is the default isolation level in sql server? : Transact sql
Why is normalization important?
Can we call dml statement in function?
Why do we use procedures in sql?
How many tables can you join in sql?
What is the need of merge statement?
What is data type in database?