Hello,
If I want to select a unique record by ID (mid), and I have two combinations of the ID, how do I pull that from a single table?
Thanks
which one do you need to pick from communication_nm as i see those are two different values?
It really doesn't matter, it could be random or based on date/time. This is occurring because someone submitted this campaign from an application twice (which is why the ID remains the same), but changed the name of the communication.
Try PROC SORT with the NODUPKEY option.
What do you mean by 2 combinations?
Why doesn't a straightforward WHERE condition work?
where mid = 'M12341234';
Good question, it's because there are other ID's from that table that will need to be pulled as well. That's why I can't specify one unique ID in a where statement.
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.