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...

i need department wise top 2 employees salary.which logic
i will use

Answer Posted / ethayan

select foracid,clr_bal_amt from (select
foracid,clr_bal_amt,rank() over (order by clr_bal_amt desc
nulls last) as ranking
from tbaadm.gam order by a,clr_bal_amt nulls last)
where ranking=2

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 rowid in sql?

909


What is sql clause?

996


How to Declare Fixed Length String Value In PL SQL

1104


What is string data type in sql?

1055


What is normalization in a database?

1108


What is string join?

934


What are the usages of sql?

1014


How is a process of pl/sql compiled?

1087


What is pl/sql language case sensitive?

1061


Cite the differences between execution of triggers and stored procedures?

1031


What are the ways on commenting in a pl/sql code?

1053


What is natural join in sql?

919


how to see the create table statement of an existing table? : Sql dba

947


Are stored procedures compiled?

873


What is the difference between drop and truncate commands?

999