I have searched high and low but can't seem to find an answer.
I want to create a status table which contains multiple lists from 3 different tables.
for example,
table 1 distinct of customer_status column table 2 distinct of company_status column table 3 distinct of product_status column
There is no direct link between any of the tables.
I want to end up with a table that looks like below.
| id | customer_status | company_status | product_status |
|---|---|---|---|
| 1 | Closed | New | Obsolete |
| 2 | Open | Opportunity | Branded |
| 3 | Pending | Own Brand | |
| 4 | On Stop |
I have tried using unions but that creates duplicates & I can't use joins as there is nothing to join to between the tables.
Option 1
I think it will work.
Option 2
A) For each table:
B) Join on row number
Probably slightly shorter and simpler than option 1.