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

how can you create zero observation dataset? : Sas programming

1203


i have a dataset with 100 obs i want to generate title from 20th obs onwards with total observations. that should contain 100 obs.dont use firstobs and dnt split the data. use dataset block or proc report? how can we genarate;

2557


What are the data types that sas contain?

1251


Explain input and put function?

1188


Mention some common errors that are usually committed in sas programming.

1105


Give e an example of..

2384


For a user to have access to a standard workspace server, is internal authentication alone is sufficient? : sas-grid-administration

1061


How you can read the variables that you need?

1179


what is the use of proc contents and proc print in sas? : Sas-administrator

1105


Can you explain the process of calendar?

1158


Explain the purpose of retain statement.

1107


What does the RUN statement do?

1351


what is business intelligence? : Sas-bi

1108


what does the run statement do? : Sas programming

1102


why a stop statement is needed for the point= option on a set statement?

1137