I have 2 tables that have nothing in common, but I want to merge them together. I think an illustration will work better than trying to explain it:
Table 1
ID |
---|
0001 |
0002 |
0003 |
0004 |
0005 |
0006 |
Table 2
Color |
---|
Red |
Yellow |
Green |
Desired Table
ID | Color |
---|---|
0001 | Red |
0001 | Yellow |
0001 | Green |
0002 | Red |
0002 | Yellow |
0002 | Green |
0003 | Red |
0003 | Yellow |
0003 | Green |
0004 | Red |
0004 | Yellow |
0004 | Green |
0005 | Red |
0005 | Yellow |
0005 | Green |
0006 | Red |
0006 | Yellow |
0006 | Green |
Lookup cross join
Lookup cross join
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
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.