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.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.