|
6#
楼主 |
发表于 2004-4-16 22:35:37
|
只看该作者
I would like to bring an attention to the difference between PROC SQL and SAS data set MERGE. If the data in two data sets are one to one match, quite often, MERGE and SQL JOIN get same thing, but if it is not the case, the results are more likely different. SAS MERGE statement has a lof of hiden rules which are often ignored by many users, it can be dangerous. There are many papers discussing the differences, I can not list them here. I sugguest people try to construct two data sets with duplicated keys and postential missing values, then try to play them with MERGE and SQL JOINs (inner, outter, left and right). You will get some taste. In general, I always prefer SQL than MERGE, since the logic is standard. |
|