how to get second highest salary from a employee table and
how get a 5th highest salary from a employee table?

Answer Posted / vidit malhotra

/*Proc RANK method*/
proc rank data=paydept out=order descending ties=dense;
var Salary;
ranks SalaryRank;
run;
proc sql;
select Name,Salary,SalaryRank from order where SalaryRank IN (2,5);
quit;

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

if you were told to create many records from one record, show how you would do this using array and with proc transpose? : Sas programming

609


What are the functions used for character handling?

716


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

4284


What are the prime responsibilities of data integration administrator? : Sas-di

653


what is the difference between floor and ceil functions in sas? : Sas-administrator

782






What do you know about sas and what we do? : sas-grid-administration

664


What is the length assigned to the target variable by the scan function?

746


for report generation which one you used proc report or data_null_?

6775


what is data integration? : Sas-di

692


What is SAS? What are the functions does it performs?

803


What is the difference between where and if statement?

693


How would you determine the number of missing or nonmissing values in computations?

706


how do you pull data from equifax?tell me the process?

1450


: and & modifiers.

936


how will you locate the sas platform applications? : Sas-bi

645