Both the left and right tables have been standardized. There are 63 rows in the left table, and 31 rows in the right one.
A Data Join node (right join) was applied successfully. But the log shows there were 33 rows joined. Does it make sense to have 33 rows joined instead of 31?
Things to consider ... perhaps ...
It's almost certainly a result of what's in the data, combined with the joining criteria.
Things to consider ... perhaps ...
It's almost certainly a result of what's in the data, combined with the joining criteria.
A test to understand
data left;
do key_l=1 to 61;
if key_l=31 then do _n_=1 to 3;
output;
end;
else output;
end;
run;
data right;
do key_r=1 to 31;
output;
end;
run;
proc sql;
create table w as
select *
from left right join right
on key_l=key_r;
quit;
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.
Find more tutorials on the SAS Users YouTube channel.