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 is the difference between rownum pseudo column and row_number() function? : Sql dba
What is view? Can we update view
How to use sql*plus built-in timers?
How do you declare a variable in pl sql?
What is string data type in sql?
What are pl/sql cursor exceptions?
Can we group by two columns in sql?
What are the string functions in sql?
What are the most important ddl statements in sql?
What are the syntax and use of the coalesce function?
How do I copy a table in sql?
What is %type in pl sql?
What is trigger in sql and its types?
How do I save a stored procedure?
How does a self join work?