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

What is the difference between order and group variable in proc report?

1361


how would you determine the number of missing or nonmissing values in computations? : Sas programming

1090


Can you suggest us materials for sdtm mapping?

4386


Given an unsorted data set, how to read the last observation to a new data set?

1282


Describe the ways in which you can create macro variables? : sas-macro

1009


why is sas data integration studio important? : Sas-di

970


What would you change about your job?

2328


what is the difference between: x=a+b+c+d; and x=sum (of a, b, c ,d);? : Sas programming

1073


What is the basic structure of a sas program?

1052


Compare sas with other data analytics tools.

980


Name and describe few sas character functions that are used for data cleaning in brief.

1055


what are the new features included in the new version of sas i.e., Sas 9.1.3? : Sas programming

995


What are the uses of sas?

1161


What are the data types that sas contain?

1118


Difference between informat and format?

1039