how to retrieve the top 3 salaries of the table using rownum
Answer Posted / dhiman sarkar
select empname,sal from (select empname,sal from dh1 order
by sal desc)
where rownum < =4
order by sal desc
| Is This Answer Correct ? | 17 Yes | 7 No |
Post New Answer View All Answers
column A column b | output 10 7 | 10 5 8 | 8 7 -9 | 7 3 5 | 5 0 6 | 6 Write a sql query to print such output.
what is the difference between undefined value and null value? : Sql dba
How do I tune a sql query?
What is not in sql?
How do I view an execution plan in sql?
Define join and name different types of joins?
what is a database? : Sql dba
How do you modify a table in sql?
How do you break a loop in pl sql?
what is a database transaction? : Sql dba
Is a view faster than a stored procedure?
Can you inner join the same table?
what is the difference between clustered and non clustered index in sql? : Sql dba
What is multiple columns?
What are different types of statements supported by sql?