Hello!
I have this problem
i need to transform a union query
(SELECT a, b, SUM(1) AS c
FROM TABLE
WHERE (b= 14) AND (CRITERIO1) GROUP BY a, b)
UNION
(SELECT a, b, SUM(1) AS c FROM TABLE
WHERE (b IN (5)) AND (CRITERIO1) GROUP BY a, b)
in a single select that return a,(how many b=14 where criterio1),(how many b=5 where criterio1)
grouping by a,b
Thanks!!