HI,
I have following dataset where I want to do a unduplicated count of ID if During or After is a "yes". With this logic unduplicated ID count that satisfy this condition is 8. would appreciate any help. Thanks.
proc sql; select count(distinct id) from have where during="Yes" or after="Yes"; quit;
View solution in original post
Thank you Paige.
Nearly 200 sessions are now available on demand with the SAS Innovate Digital Pass.
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.