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 / vidit malhotra

/*Proc RANK method*/
proc rank data=paydept out=order descending ties=dense;
var Salary;
ranks SalaryRank;
run;
proc sql;
select Name,Salary,SalaryRank from order where SalaryRank IN (2,5);
quit;

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the statements that are executed only?

1158


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

1115


How long can a macro variable be? A token? : sas-macro

1218


Explain why double trailing @@ is used in input statement?

1074


How would you identify a macro variable?

1097


Have you used macros? For what purpose you have used? : sas-macro

1043


What are the different operating system platforms in which we can use sas? : sas-grid-administration

1077


What are types of transport files?

8010


how does sas handle missing values in: assignment statements, functions, a merge, an update, sort order, formats, procs? : Sas programming

1041


Give some ways by which you can define the variables to produce the summary report (using proc report)?

1094


What is the use of PROC gplot?

1144


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

4522


What do the SAS log messages "numeric values have been converted to character" mean?

1386


Why and when do you use proc sql?

1252


What is the difference between where and if statement?

1118