select top 3 sal from each dept?

Answer Posted / sasi

select * from
(select sal,rank() over (order by sal desc) emprank from emp)
where emprank<=3

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is 'mysqldump'? : Sql dba

573


What are stored procedures in mysql?

565


What is normalization in sql?

529


What are the operators used in select statements?

578


What is a primary key sql?

565






How do you select unique values in sql?

502


What packages are available to pl/sql developers?

603


What are the types of sql commands?

553


Can you join views in sql?

544


Define the select into statement.

576


What is left join in sql?

584


How to use transactions efficiently : transact sql

546


What is a crud api?

502


What is a record in pl/sql?

551


Is it possible for a table to have more than one foreign key?

582