Hi,
I am looking to join 2 queries, with similar columns, the second query has a few columns less compared to the first query. I am using the union query to obtain a result which contains the records from both queries. The code I am using is:
SELECT
B44MinPO.material,
B44MinPO.plant,
B44MinPO.cs_qty,
B44MinPO.buyer,
B44MinPO.B44 Stock,
B44MinPO.B44 Pallet,
B44MinPO.EBELN,
B44MinPO.OPEN_QTY,
B44MinPO.WERKS,
B44MinPO.DUEDT,
FROM B44MinPO
UNION
SELECT
B44NoPO.material,
B44NOPO.plant,
B44NOPO.cs_qty,
B44NOPO.buyer,
B44NOPO.B44 Stock,
B44NOPO.B44 Pallet,
"",
"",
"",
"",
FROM B44NOPO;
However, this is giving me a syntax error - 3075 - saying -- Syntax error (missing operator) in query expression B44MinPO.B44 Stock
I have no clue why this is happening, can anyone help??
Thanks.