select top 3 sal from each dept?

Answer Posted / keshav

with Q as (select *,dense_rank() over(partition by dept
order by sal) as dr from dept
select * from Q
where dr=3

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many unique keys can a table have?

561


What is sql dialect?

531


Can I learn sql in a week?

554


What is rowtype?

571


Why we use triggers in mysql?

560






How do I truncate a word?

529


How many types of functions are there in sql?

507


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

518


what is commit? : Sql dba

619


explain the difference between myisam static and myisam dynamic. : Sql dba

519


What is the use of & in pl sql?

540


What is the difference between joins?

536


What is embedded sql in db2?

507


what is schema? : Sql dba

564


Can dml statements be used in pl/sql?

581