Difference between SAS merge and full outer join [duplicate]
问题 This question already has answers here : How to replicate a SAS merge (2 answers) Closed 4 years ago . Table t1: person | visit | code_num1 | code_desc1 1 1 100 OTD 1 2 101 SED 2 3 102 CHM 3 4 103 OTD 3 4 103 OTD 4 5 101 SED Table t2: person | visit | code_num2 | code_desc2 1 1 104 DME 1 6 104 DME 3 4 103 OTD 3 4 103 OTD 3 7 103 OTD 4 5 104 DME I have the following SAS code that merges the two tables t1 and t2 by person and visit: DATA t3; MERGE t1 t2; BY person visit; RUN; Which produces the