How i can remove duplicates using PROC SQL ?
Proc SQL;
Select distinct Column_name from Table_name;
quit;
Hi @AakashData Welcome to SAS forum.
When you mean duplicates, that causes ambiguity in the sense that
1. Duplicates could mean duplicate records
2. Duplicates could mean duplicate keys. For eg: Transaction data
3. Duplicates caused due to some joins on account of one to many or more in chances of many to many
and for other various reasons in a poorly designed DIY dimensional model where dimension tables are not properly in 2nd normal form and so on and so forth.
It would be helpful if you could post a sample of what you HAVE explaining what you deem as duplicates and your required output.
To remove duplicates using PROC SQL use following step,
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.