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

How do sql databases work?

1006


What is the sql*loader? : aql loader

1059


What is the difference between sql and t sql?

1048


What is scalar and vector?

1010


What do you understand by pl/sql packages?

1067


Which is better cte or subquery?

1035


Explain the uses of database trigger.

1119


Which command is used to call a stored procedure?

1009


Why we use cross join?

960


How do I run a program in pl sql?

1011


what is 'trigger' in sql? : Sql dba

1094


what are different types of collation sensitivity? : Sql dba

1079


Does truncate free space?

1018


What trigger means?

997


Why join is faster than subquery?

1118