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

/*sort employee table by salary in desending order */

proc sort data=xx nodupkey;
by descending sal ;
run;
/*outputting the second and 5th largest salary to then yy
dataset */
data yy;
set xx;
if _n_ in (2, 5) then output;
run;

Is This Answer Correct ?    35 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

1836


Do you need to rearrange the order of the data for the report?

2361


Explain data_null_?

1110


List down the reasons for choosing sas over other data analytics tools.

1334


what is sas data set?

1151


what is change analysis in sas di ? : Sas-di

1116


How do dates work in SAS data?

1229


Can you explain the process of calendar?

1158


What are the statements in proc sql?

1149


Enlist the functions performed by sas.

1192


What is data _null_?

1198


How substr function works in sas?

1272


What is the work of tranwrd function?

1298


What’s the difference between var b1 – b3 and var b1 — b3?

1444


Explain the difference between using drop = data set option in set and data statement?

1194