Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

select top 3 sal from each dept?

Answer Posted / chiru

select *
from (select row_number() over(partition by deptno order by sal desc) r,
b.*
from (select rownum num, a.* from emp a order by sal desc) b)
where r <= 3

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the savepoint statement.

1137


define sql update statement ? : Sql dba

1159


how to show all tables with 'mysql'? : Sql dba

1158


What is the advantage of nosql?

1113


how many groups of data types? : Sql dba

1076


What is index example?

1046


What version is sql?

1076


What found sql?

995


What are different clauses used in sql?

1174


What are the various levels of constraints?

1167


Can we rollback truncate?

1050


What are pl/sql cursors?

1101


how many sql dml commands are supported by 'mysql'? : Sql dba

1167


Explain dml and ddl?

1056


What are sql commands?

1067