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 / richa

It can be done by first sorting the dataset in the
ascending order of salary and then using the 'point='
option.

For eg:

proc sort data = x;
by salary;
quit;

/*second highest salary*/
data y;
a = 2;
set x point = a;
stop;
run;

/*fifth highest salary*/
data y;
a = 5;
set x point = a;
stop;
run;

Is This Answer Correct ?    6 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how merging helps to combine data sets.

992


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

1009


why is sas considered self-documenting? : Sas programming

1082


How you are maintaining sas programmes in your company...any specific version control software you are using? If so, tell me the name?

2056


Compare sas with other data analytics tools.

982


what is business intelligence? : Sas-bi

1014


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

1026


Explain by-group processing?

947


what is broad cast agent? : Sas-bi

1010


How is character variable converted into numeric variable and vice versa?

1106


How to limit decimal places for the variable using proc means?

999


how many display types available in sas bi dashboard? : Sas-bi

1032


What do the mod and int function do? : Sas programming

1129


What are the parameters of scan function?

1107


What is run-group processing?

1089