Good day. There is a query of the following form:
SELECT COUNT(id) FROM A WHERE id_C = 2 UNION SELECT COUNT(id) A FROM A WHERE id_C = 3 Request cut as much as possible so that the essence was clear.
There are results in this form:
4 7 It is required to add to the same result the third line the sum of the previous two lines:
4 7 11 This is possible without filing an additional request of the form:
SELECT COUNT(id) FROM A WHERE id_C IN(2, 3) ?