Skip to content
Advertisement

Join Multiple Table based on a condition

I have data where i need to join to different tables based on a condition, month. I am using proc sql. Currently I am using

However, this is not working. Any help greatly appreciated.

Advertisement

Answer

You could do this in a single query, using conditional joins:

Note that you should not have several tables to store the same data over different months. Instead, you should have a single table, with one more column to store the month.

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement