Hi
I want to write 2 SQLS joined by UNION.
e.g.
(
SELECT D1.A1, D2.A2, 0, 0, sum(F1.A1), sum(F1.A2)
FROM D1, D2, F1
WHERE ........
GROUP BY D1.A1, D2.A2
UNION
SELECT D3.A1, D4.A2, sum(F2.A1), sum(F1.A2), 0, 0
FROM D3, D4, F2
WHERE ........
GROUP BY D3.A1, D4.A2
)
Any solutions?? Even if MSTR doesnt give this SQL, will there be any way to generate similar output using Custom Group or otherwise?
Thanks
I want to write 2 SQLS joined by UNION.
e.g.
(
SELECT D1.A1, D2.A2, 0, 0, sum(F1.A1), sum(F1.A2)
FROM D1, D2, F1
WHERE ........
GROUP BY D1.A1, D2.A2
UNION
SELECT D3.A1, D4.A2, sum(F2.A1), sum(F1.A2), 0, 0
FROM D3, D4, F2
WHERE ........
GROUP BY D3.A1, D4.A2
)
Any solutions?? Even if MSTR doesnt give this SQL, will there be any way to generate similar output using Custom Group or otherwise?
Thanks