I have two tables that I need to get a count of entries per person summed between the two tables.
I need to join the following queries together in one grouped by the name.
select count(entryid) as table1count, reqname1 from table1
And the second query:
select count(comid) as table2count, reqname2 from table2
How would I put these together so that I ended up with output like this:
jsmith 236
jsnow 13
etc.
Sometimes the same reqname will be in both tables, but it could only be in one or the other. So I want to show all reqnames between the two tables and their counts summed between the two tables.
Any ideas on how to do this?