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 to concatenate two character strings? : Sql dba

1078


How we can create a table in pl/sql block. Insert records into it? Is it possible by some procedure or function? Please give example?

1031


How does a self join work?

1080


What is 19 null in sql?

936


What is loop in pl sql?

1018


What is varchar sql?

1118


Does sqlite need a server?

1032


what is a scheduled jobs or what is a scheduled tasks? : Sql dba

947


What is function and procedure in pl sql?

1026


What is vector point function?

1026


Explain the uses of a database trigger?

1016


How do I run a sql script?

1121


What is user in sql?

1004


What is a scalar value in sql?

1054


How do you create a db file?

997