I have these two queries and I want to add them
SELECT count(*) FROM table2 GROUP BY table1_id
SELECT count(*) FROM table3 GROUP BY table1_id
I tried something similar to the accepted answer in this question. The difference is that I have a group by clause in both queries and I get the following error
ERROR: more than one row returned by a subquery used as an expression
********** Error **********
What am I missing?