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


Please Help Members By Posting Answers For Below Questions

Show how functions and procedures are called in a pl/sql block.

586


Explain select statements in sql?

584


how would you enter characters as hex numbers? : Sql dba

516


What is the cause of mutating table error and how can we solve it?

598


What are the query optimization techniques?

535






what is acid property in database? : Sql dba

559


What is the difference between local and global temporary table?

548


How to Execute a Package in PL/SQL.?

582


Is sql database free?

525


How to call shell script from pl sql procedure?

625


How do I partition in sql?

536


Why are sql stored procedures used?

611


Does sql view stored data?

534


What is the difference between left join and right join?

500


describe mysql connection using mysql binary. : Sql dba

550