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
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 save with the early bird rate—just $795!
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.