how to retrieve the top 3 salaries of the table using rownum
Answer Posted / raghunanda
SELECT * FROM(SELECT * FROM EMP ORDER BY SAL DESC) WHERE ROWNUM<=3;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How to rename a table?
What is sql not null constraint?
Why do we need databases?
what is a trigger in mysql? Define different types of trigger. : Sql dba
what does the t-sql command ident_incr does? : Transact sql
What is the use of count (*) in sql?
What is the difference between nvl function, ifnull function, and isnull function?
Does truncate release storage space?
What is structural independence and why is it important?
Explain sql data types?
What is the difference between functions, procedures, and packages in pl/sql?
What is gpt format?
What is the use of desc in sql?
What is a database event trigger?
How does one load ebcdic data? : aql loader