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 / poorna m

proc sort data=emp out=emp1 nodupkey;
by descending sal empid;
run;

PROC RANK DATA=emp1 OUT=emp3 TIES=LOW DESCENDING;
VAR sal ;
RANKS highestsal;
RUN;

data emp4;
set emp3;
where highestsal in (2,5);
run;

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what do the pad and dim functions do? : Sas programming

1033


How to limit decimal places for variable using proc means?

1115


how does sas handle missing values in formats? : Sas programming

1148


Mention what are the data types does SAS contain?

1155


Explain proc univariate?

1039


what do the sas log messages "numeric values have been converted to character" mean? : Sas programming

1038


Give some ways by which you can define the variables to produce the summary report (using proc report)?

1094


how would you create multiple observations from a single observation? : Sas programming

1011


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

1011


what is sas application server, database server, sas olap server and sas metadata server? : Sas-di

1021


Of all your work, where have you been the most successful?

4671


What do you code to create a macro? : sas-macro

1149


Define run-group processing?

1047


What are SAS/ACCESS and SAS/CONNECT?

1151


Mention common programming errors committed in sas ?

1131