ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
 
Categories  >>  Software  >>  Data Warehouse  >>  SAS
 
 


 

 
 Teradata interview questions  Teradata Interview Questions
 Business Objects interview questions  Business Objects Interview Questions
 Cognos interview questions  Cognos Interview Questions
 Informatica interview questions  Informatica Interview Questions
 Crystal Enterprise Suite interview questions  Crystal Enterprise Suite Interview Questions
 Actuate interview questions  Actuate Interview Questions
 Ab Initio interview questions  Ab Initio Interview Questions
 Data Stage interview questions  Data Stage Interview Questions
 SAS interview questions  SAS Interview Questions
 Micro Strategy interview questions  Micro Strategy Interview Questions
 ETL interview questions  ETL Interview Questions
 Data Warehouse General interview questions  Data Warehouse General Interview Questions
Question
what is Difference between PROC SQL JOINS and MERGE?
 Question Submitted By :: Sankar
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what is Difference between PROC SQL JOINS and MERGE?
Answer
# 1
The resultant dataset depends on the input datasets.
In case of one to one and one to many  both work 
similarly,i.e. the resultant dataset is same.
But differs in case of many to many and non matching 
datasets:
many to many:
ex:                         (merge on x)  (proc sql)
X  Y              X    Z      X  Y  Z     X  Y  Z     
-----             ------      -------     -------
1  A              1    F      1  A  F     1  A  F
1  C              1    R ---> 1  C  R     1  A  R 
2  B              2    G      2  B  G     1  C  F 
                                          1  C  R
                                          2  B  G  


NON MATCHING DATA:

ex:                         (merge on x)  (proc sql)
X  Y              X    Z      X  Y  Z     X  Y  Z     
-----             ------      -------     -------
1  A              1    F      1  A  F     1  A  F
2  B              3    T ---> 2  B  .     3  C  T
3  C              4    G      3  C  T     
                              4  .  G
 
Is This Answer Correct ?    4 Yes 0 No
Rajitha Macherla
 

 
 
 
Other SAS Interview Questions
 
  Question Asked @ Answers
 
CHOOSE ANY ONE OF THE PROCEDURE FOLLOWING TO GENERATE THE REPORTS? HOW CAN YOU SAY IT IS BETTER THAN THE OTHER? AND DEFERENCIATE THESE TWO ? 1). REPORT PROCEDURE 2). TABULATE PROCEDURE CybAge2
How do you read in the variables that you need? Accenture6
WHAT IS LAG FUNCTION ? WHERE CAN YOU IMPLEMENT THIS FUNCTION? Zensar2
How do you add a number to a macro variable?  3
data data1; input dt account; format dt date9.; cards; 1745 1230 1756 1120 1788 1130 1767 1240 ; data data2; input startdt enddt total; format startdt date9. enddt date9.; cards; 1657 1834 12300 1557 1758 16800 1789 1789 12300 1788 1345 12383 1899 1899 13250 ; proc sql; create table data3 as select * from data1 as x left join data2 as y on x.dt>=y.startdt and x.dt<=y.enddt; quit; Here, we are getting cartision product. But,I want left join report consisting of this program. It should not get duplicate values. you can modify the program also.  1
what are the differences between proc report and proc tabulate?  1
what is the difference between compiler and interpreter? give any one example (software product) that act as a interpreter? Accenture13
what is the diff b/w verification validation in sas SAS3
How do you put an elephant in the refrigerator? Oracle4
how can u extract,transform and loading? CitiGroup2
Does SAS ‘Translate’ (compile) or does it ‘Interpret’? Explain. Accenture4
what is the difference between proc report and proc format? CTS5
What is the difference between verification and validation? Oracle6
Name and describe three SAS functions that you have used, if any? Accenture3
DATA ABC; INPUT TDATE DATE9. AVG; CARDS; 18APR2008 150.00 19APR2008 167.00 20APR2008 123.00 21APR2008 145.00 ; RUN HOW CAN I FIND THE DIFFERENCE BETWEEN AVG OF 18APR2008 ANF 21APR2008?? IF ANY ONE GETS IT PLS TRY TO POST IT. Verinon-Technology-Solutions7
Which is the best training institute for SAS in hyderabad.  15
I am having a stored process.it needs to route my report to both hthml and Xls.By default SP routes to html.I used the PRINTTO to route the html to Xls.BUt it createsthe file not but no content was written to file(0KB)?how can i do it?  1
what is SAS/Graph? CitiGroup1
If reading a variable length file with fixed input, how would you prevent SAS from reading the next record if the last variable didn?t have a value?  3
How did you use the round function?give an example(don't say it will round to the nearest intger) eg1:round(84.55,.1) =84.6 eg2:round(92.64,.1)=92.6,How it is happening like this tell me the logic,that is how the round function works when we have deimal values? BoA2
 
For more SAS Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com