I Have two similar table but new & old.
table01 Old
id | customer | product | quantity |
---|---|---|---|
001 | Cust001 | Soap | 200 |
002 | Cust002 | Shampoo | 23 |
003 | Cust003 | Ketchup | 30 |
table01 New
id | customer | product | quantity |
---|---|---|---|
002 | Cust002 | Shampoo | 70 |
003 | Cust003 | Ketchup | 50 |
what i want to get on union is id 001 from old table, and id 002 - 003 from new table
id | customer | product | quantity |
---|---|---|---|
001 | Cust001 | Soap | 200 |
002 | Cust002 | Shampoo | 70 |
003 | Cust003 | Ketchup | 50 |
After i try with union all or simple union it's not show like what i want. How to get the view like my wanted table use case or what should i do after union?
*now, my real table got hundres transaction id