BookmarkSubscribeRSS Feed
Ravikumarkummari
Quartz | Level 8

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;

2 REPLIES 2

sas-innovate-white.png

Register Today!

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.

Register now!

What is Bayesian Analysis?

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 3206 views
  • 0 likes
  • 3 in conversation