How to join the 2 very large datasets with duplicate id keys in both the datasets
For example, I have the following datasets
table1 :
acct_no a b c d
a1 4 7 2 8
a3 5 32 8 12
a5 42 12 54 65
a1 5 2 17 23
acct_no is the key with duplicates because it is a transaction dataset.
table 2:
acct_no card_no
a4 54
a3 31
a4 43
a1 24
a8 12
a7 23
a8 45
acct_no in table 2 also has duplicates because the logic is that a single customer can have more than one card, one a primary card and the other being secondary card
Can anybody help me with the logic for the join?
The datasets contain 400 million records and are pretty wide and long, however i need to fetch only the card_no from table2, so table 1 would be my left table. Sorting will not help either
Contents of this post seem like a duplicate.
But the title is totally different from the question?
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.