I'm trying to use the "union" between 2 sql statements, not sure how the group by feature should be placed, for example:
I'd like to put A next to B in a report.......
Select "field1", "field2", SUM("field3") AS "A"
From "table"
Where "field2"=1
UNION
Select "field1", "field2", SUM("field3")...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.