how to retrieve the top 3 salaries of the table using rownum

Answer Posted / chiru

select sal from (select distinct sal from emp order
by sal desc)
where rownum<4 ;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the difference between where clause and having clause? : Sql dba

545


what are the security recommendations while using mysql? : Sql dba

587


Can we use having without group by in sql?

559


What is union, minus and interact commands?

757


How many sql commands are there?

683






What are basic techniques of indexing?

853


What are the parts of a basic sql query?

523


How can you select unique records from a table?

526


What are analytic functions in sql?

559


What is t sql in sql server?

574


What are the steps for performance tuning.

849


What are user defined functions?

588


Is truncate ddl or dml?

551


What are procedures used for?

539


How global cursor can be declare with dynamic trigger ?

1758