Sorry - but the code did not come out right in my data.
When I use the example data it is correct
My real data has same concept.. but I dont know why it do not show the real resulst.
I will try ask again in a new question?
I think that's the right approach 🙂
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
Latest Updates
SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.
Find more tutorials on the SAS Users YouTube channel.