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 ?    1 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Difference between informat and format?

1039


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

1025


what are validation tools that are used in sas? : Sas-administrator

1000


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

2505


what is the difference between floor and ceil functions in sas? : Sas-administrator

1183


How would you identify a macro variable? : sas-macro

965


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

1003


How to specify variables to be processed by the freq procedure?

1023


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

3897


describe about physical data integration? : Sas-di

991


describe about metadata object? : Sas-di

1007


Intern stastical programmer written test

677


How to convert a numeric variable to a character variable?

1131


what is change analysis in sas di ? : Sas-di

988


Mention the validation tools used in SAS?

1100