Can any one explain the inner join on condition (ON a.date=b.DATE - 1 YEAR) in below query
proc sql;
alter table k.data_products
add var1 NUM(8)
add var2 NUM(8)
add var3 NUM(8)
add var4 NUM(8)
add var5 NUM(8);
update k.data_products1 a
set a.var1=b.c_var1,a.var2=b.c_var2,a.var3=b.c_var3
FROM k.data_products1 a INNER JOIN k.data_products2 b
ON a.date=b.DATE - 1 YEAR;
That isn't valid syntax.
Ask the person who created the code.
Since it's a syntax error, there's nothing to explain.
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.