mam zapytanie które pobiera wartość dwóch tabel (dwa count)
o powiedzmy, że wynik to:
ile1 ile2 16 3
a jak je zsumować razem, żeby efekt był
total 19
Wiem, że musi być sum() tylko niewiem jak go poprawnie skonstruować.
ile1 ile2 16 3
total 19
select sum(*) from union
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '*) from (select count(id) from table1 where '2014-11-07' between od and do un' at line 1