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

explain the proc in sas? : Sas-administrator

1132


What is the function of output statement in a SAS Program?

1126


What are symget and symput? : sas-macro

1370


How does proc sql work?

1147


Describe the ways in which you can create a macro variable?

1135


Give some examples where proc report’s defaults are different than proc print’s defaults?

1135


Explain the use of proc print and proc contents?

1016


What are the special input delimiters used in SAS?

1241


State the difference between INFORMAT and FORMAT ?

1154


What are the differences between proc means and proc summary?

1198


How many data types are there in SAS?

1134


How do you control the number of observations and/or variables read or written? Approximately what date is represented by the SAS date value of 730?

1731


What is your favorite all time computer book? Why?

2559


What is the difference between INPUT and INFILE ?

1376


Define run-group processing?

1097