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

Enlist the functions performed by sas.

1192


I have 3 years of work experience at a startup and recently got certified in Data Science with SAS. I need to know how to get into the analytics industry

1815


What is run-group processing?

1244


What will calendar procedure do?

1116


Mention what are the data types does SAS contain?

1194


Assuming {et} is randomly drawn from N(0,1) and e0 = 0, generate 200 observations of xt = et − 0.5e(t−1) and draw a line graph of xt.

1929


What are the different servers in sas? : sas-grid-administration

1104


what is the effect of the options statement errors=1? : Sas programming

1105


what type of graphs we will create(for 2+years candidates)?

2361


what do the sas log messages "numeric values have been converted to character" mean? What are the implications? : Sas programming

1322


What are types of transport files?

8087


What is interleaving in SAS?

1178


Are you involved in writing the inferential analysis plan? Tables specfications?

2265


what is PhaseIII, ODS, TLG, Macro and Proc in SAS

4595


what is hash files in sas and why we are using this one in sas?

2269