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

how to get second highest salary from a employee table and
how get a 5th highest salary from a employee table?

Answer Posted / dinesh

select * from emp e where
2 =(select count(distinct sal) from emp where e.sal<=sal)
or 5=(select count(distinct sal) from emp where e.sal<=sal);

Is This Answer Correct ?    9 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Give an example where SAS fails to convert character value to numeric value automatically?

1088


What is the difference between nodupkey and nodup options?

1039


How we can create SAS USER DEFINED CODE?

2096


how do you test for missing values? : Sas programming

1053


explain the concepts and capabilities of business object? : Sas-bi

962


what is business intelligence? : Sas-bi

1068


What are the 3 components in sas programming?

1193


How would you include common or reuse to be processed along with your statements?

2373


Explain translate function?

1206


How do you control the number of observations and/or variables read or written?

1249


How sas treats the dsd delimiters?

1216


what is treatment emergent events and treatment emregent adverse event

2407


Describe a time when you were really stuck on a problem and how you solved it?

2637


Give some examples where proc report’s defaults are same as proc print’s defaults?

1113


what is sas olap server? : Sas-di

1257