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                      
tip   To Refer this Site to Your Friends   Click 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
 
How would you code a merge that will keep only the observations that have matches from both sets?  4
How would you keep from overlaying the a SAS set with its sorted version?  3
Are you familiar with special input delimiters? How are they used? Accenture3
. Which date advances a date, time or date/time value by a given interval?  6
How can you put a "trace" in your program?  2
hi i am nipun can anybody tell me that if a clinical sas programmer write the code and after successfull execution where do they store it. how they submit tables to TL how work is assigned to programmers either both code, log, output to be submitted. can any one tell me the process HSBC2
How would you remove a format that has been permanently associated with a variable? ________________ TCS2
In this question, I rename the numeric variable phone to numphone and then try use phone=put(numphone,comma16.) to store the numeric value numphone as a string value in phone. But I get a warning tha numphone already exists and in the data sat phone doesnt exist and numphone is set to missing. Why? data names_and_more; input Name $20. Phone : comma16. Height & $10. Mixed & $8.; Name = tranwrd(Name,' ',' '); rename phone = numphone; phone = put(numphone,comma16.); datalines; Roger Cody 9,087,821,234 5ft. 10in. 50 1/8 Thomas Jefferson 3,158,488,484 6ft. 1in. 23 1/2 Marco Polo 8,001,234,567 5Ft. 6in. 40 Brian Watson 5,183,551,766 5ft. 10in 89 3/4 Michael DeMarco 4,452,322,233 6ft. 76 1/3 ;  1
Do you use PROC REPORT or PROC TABULATE? Which do you prefer? Explain.  3
how do you read binary data in sas? Satyam3
For what purpose(s) would use the RETURN statement?  1
how to intersect the tables by using PROC MIXED? CitiGroup1
Explain the message ‘MERGE HAS ONE OR MORE DATASETS WITH REPEATS OF BY VARIABLE’.  2
1.What is the difference between _NULL_ , _ALL_, and _N_? 2.What are the uses of _NULL_ using in Data Steps? Can we _NULL_ in Proc Steps also? 3.How do call the macro variable in Data Steps? 4.How to construct Pivot tables in Excel Using SAS?  2
what is Global Symbol table and Local symbol table? CitiGroup3
data study; input Subj : $3. Group : $1. Dose : $4. Weight : $8. Subgroup; x= input(Weight,5.1); datalines; 001 A Low 220 2 002 A High 90 1 003 B Low 193.6 1 004 B High 165 2 005 A Low 123.4 1 ; Why does X get truncated? X shows up as 22 instead of 220,9 instead of 90 and 19.8 instead of 198? This problem doesnt happen with the values 193.6 and 123.4. This does not happen if x is read on the 5. informat instead of the 5.1 informat  2
how do u validate sas program Accenture2
How the date 04oct1994 is stored in SAS,not only give the answer explain in brief?  3
What report output formats can you generate using SAS? Accenture3
Code a PROC MEANS that shows both summed and averaged output of the data.  3
 
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