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 cursor. write example of it. What are the attributes of cursor.
Does sap use sql?
How do I view a procedure in sql?
Explian rowid, rownum? What are the psoducolumns we have?
how to escape special characters in sql statements? : Sql dba
What trigger means?
What are some predefined exceptions in pl/sql?
How do I find duplicates in two columns?
What are local and global variables and their differences?
what is the syntax used for partition in tsql? : Transact sql
How do you use join?
What is the order of sql select?
What is left inner join in sql?
What is pl sql and why it is used for?
How to change the order of columns in Oracle SQL Plus ?