SELECT mem_id, sum(commission)
FROM `member_commission`
group by mem_id
SELECT mem_id, sum(crowdfund)
FROM `crowdfund`
group by mem_id
i want to combine both of these commands in one and then group them by mem_id
+
both of my table (member_commission, crowd fund) have a (datetime stamp - which records date and time) column which is time column present in membecommission and distrbutedmonth in crowdfund.... and i just want the result of the present month only...
the datetime column records date and time in this format : 2018-08-22 22:02:09