Data Archive
- Data Archive 6.4.3
- All Products
SELECT column1 [, columnN ] FROM table1 [, tableN ] [WHERE clause] UNION ALL SELECT column1 [, columnN ] FROM table1 [, tableN ] [WHERE clause]
SELECT product_id FROM order_items UNION ALL SELECT product_id FROM inventories;
All three tables must have the same number of columns of the same data type.SELECT * FROM departments UNION ALL (SELECT * FROM warehouses UNION SELECT * FROM offices);