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

proc sort data=samp out= samp1 nodupkeys;
by sal descending _all_;
run;

/*second highest salary obs will come into samp2 dataset */
/*for fifth highest salary obs change slice value from 2 to 5 */

data samp2;
slice = 2;
set samp1 point = slice;
output;
stop;
run;

Is This Answer Correct ?    1 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you delete duplicate observations in sas?

1078


How can you create a macro variable with in data step? : sas-macro

1049


what is operational data and operational system? : Sas-di

1116


What are the uses of sas?

1278


What are the automatic variables for macro? : sas-macro

1261


what is study design in while working with SAS? what are screening variables in SAS?

2246


what is a method for assigning first.var and last.var to the by groupvariable on unsorted data? : Sas programming

1011


What is the difference between proportion and average?

3341


it will become easy if uuu provide website linkssss and list of consultanciessssss

1982


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.

1881


Describe the function and untility of the most difficult SAS macro that you have written.

2225


What is a pdv and what are its functions?

1157


What is the difference between one to one merge and match merge? Give an example.

1070


what are some differences between proc summary and proc means? : Sas programming

1136


Define run-group processing?

1047