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

do you need to know if there are any missing values? : Sas programming

985


In ARRAY processing, what does the DIM function do?

1111


What can be the size of largest dataset in SAS?

1169


What are SAS/ACCESS and SAS/CONNECT?

1085


which date function advances a date, time or datetime value by a given interval? : Sas programming

990


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?

1622


what is the limit of the number of the rows and columns available in the worksheet? : Sas-bi

1032


why is sas considered self-documenting? : Sas programming

1080


explain about various caches available in data integrator? : Sas-di

990


what is the difference between calculating the 'mean' using the mean function and proc means? : Sas programming

1166


How does SAS handle missing values in: assignment statements, functions, a merge, an update, sort order, formats, PROCs?

1476


What are the features of SAS?

968


Tell e how how dealt with..

2167


Briefly explain input and put function?

1026


What is the work of tranwrd function?

1175