Let's say I have the following tables :
Table 1
task | date
100 | 2016-01-01
101 | 2016-01-01
103 | 2016-01-01
Table 2
task2 | date
113 | 2016-01-01
113 | 2016-01-01
103 | 2016-01-01
I would like to get to this result:
task_result | Count
100 | 0
101 | 0
103 | 1
Basically count data included in task1 table1 present in task2 table2.
Any idea?