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
What is the maximum database size for sql express?
Can we join same table in sql?
what is an index? : Sql dba
Explain isolation levels. : Transact sql
what is a trigger in mysql? Define different types of trigger. : Sql dba
what is the use of friend function? : Sql dba
what is the difference between ereg_replace() and eregi_replace()? : Sql dba
Is it possible to update views?
how to convert dates to character strings? : Sql dba
What is difference between pl and sql?
Define commit, rollback and savepoint?
Can a view be mutating? If yes, then how?
How does postgresql compare to "nosql"?
What are the different ways to optimize a sql query?
What is schema in sql example?