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 top scorer student from a class- table
having different sections A, B, C & D? each section has same
number of student.

Answers were Sorted based on User's Feedback



How to get second top scorer student from a class- table having different sections A, B, C & D?..

Answer / maddy

proc sql;
select max(score) < (select max(score) from table)

from table;
quit;

Is This Answer Correct ?    3 Yes 0 No

How to get second top scorer student from a class- table having different sections A, B, C & D?..

Answer / partha

proc rank data=emp descending ties=dense out=s(where=(inc=1));
by deptno ;
var sal;
ranks inc;
run;
quit;

Is This Answer Correct ?    1 Yes 0 No

How to get second top scorer student from a class- table having different sections A, B, C & D?..

Answer / wkm

proc sort data=table;
by section descending score;
run;

data table2;
retain tot 0;
set table;
by section descending score;

if first.section then tot=1;
tot+1;

if tot=2;
run;

Is This Answer Correct ?    1 Yes 0 No

How to get second top scorer student from a class- table having different sections A, B, C & D?..

Answer / chandu

DATA ONR;
INPUT
@1 a
@3 b
@5 c
@7 d
;
SUM_VALUE =SUM (A, B, C, D);
RUN;
PROC SORT DATA=ONE NODUPKEY;
BY SUM_VALUE;
RUN;
DATA ONE_RESULT;
SET SUM;
IF _N_ = 2 THEN OUTPUT;
RUN;

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More SAS Interview Questions

For what purposes have you used sas macros? : sas-macro

0 Answers  


What is program data vector (pdv) and what are its functions?

0 Answers  


Can you excute a macro within a macro? Describe.

2 Answers   Genta,


create macros---you have 365 number of data and you need to merge it throw the macros,,,,,, data file1; input a @@; cards; 1 2 3 4 ; run; data file2; input a @@; cards; 5 6 7 8 ; run; data file3; input a @@; cards; 9 10 11 12 ; run;data file4; input a @@; cards; 13 14 15 16 ; run;

6 Answers   WNS,


Can you explain the process of calendar?

0 Answers  


how do the in= variables improve the capability of a merge? : Sas programming

0 Answers  


Differentiate between sas functions and sas procedures.

0 Answers  


What is highest missing value for numeric?

1 Answers  


If a variable contains only numbers, can it be a character data type?

0 Answers  


How do you define proc in sas? : sas-grid-administration

0 Answers  


WHAT DIFFERRENCE DID YOU FIND AMONG VERSION 6 8 AND 9 OF SAS.

4 Answers   Genzyme,


What is SAS? is it a software just for use or we can creat something over there?

5 Answers   Cognizant,


Categories