what is Difference between PROC SQL JOINS and MERGE?
Answer Posted / rajitha macherla
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 ? | 28 Yes | 6 No |
Post New Answer View All Answers
what is the Population you used in your project, is it ITT or PP?
what is star schema? : Sas-di
How will you react when, while consulting a SAS documentation manual to get an answer to a problem, someone says hey, I thought you were supposed to know all that stuff already, and not have to look it up in a book?
What are the data types in sas?
What does P-value signify about the statistical data?
Assuming {et} is randomly drawn from N(0,1) and e0 = 0, generate 200 observations of xt = et − 0.5e(t−1) and draw a line graph of xt.
Mention the category in which sas informats are placed?
What can be the size of largest dataset in SAS?
in the flow of data step processing, what is the first action in a typical data step? : Sas programming
Difference between SAS STATA & SPSS?
what is transformation in sas data integration? : Sas-di
Mention what is PROC in SAS?
Explain translate function?
What is the difference between where and if statement?
What are the different operating system platforms in which we can use sas? : sas-grid-administration