I have performed a left join where the left table has 500,000 observations. In some cases the left join has been successful for Business_Line = "Retail" where as the next observation is left blank, why is this?
the code I used:
proc sql;
create table joined2 as
select a.*
,b.Join1
,b.Join2
,b.Join3
from joined as a
left join Sasdata.Assumptions as b
on a.Business_Line = b.Business_Line;
quit;
the two tables look like
data joined;
input Business_Line $;
datalines;
Retail
Retail
Retail
Business
Business
;
run;
the table to join looks like
data sasdata.assumptions;
input Business_Line $ Join1 Join2 Join3;
datalines;
Retail 10% 10% 10%
Business 20% 10% 5%
;
run;
the current resulting table looks like
business_line join1 join2 join3
Retail 10% 10% 10%
Retail . . .
Business 20% 10% 5%
Business . . .