how to retrieve the top 3 salaries of the table using rownum
Answer Posted / vik
select empno, ename, sal from (select * from emp order by
sal desc) where rownum < 4
| Is This Answer Correct ? | 8 Yes | 1 No |
Post New Answer View All Answers
What are the different ways to optimize a sql query?
Explain spool.
What are different types of triggers?
What is pragma in pl sql?
Which is faster joins or subqueries?
How do you optimize a stored procedure query?
How do I quit sql?
Why do you partition data?
What is the difference between syntax error and runtime error?
What will you get by the cursor attribute sql%notfound?
How do you get column names only for a table (sql server)?
Why is sql better than hql?
How to fetch alternate records from a table?
What is database migration?
What are sql data types?