I have a table:

and this table:

I would like to create report like this

I've tried this SQL:
select master_problem.problem, master_problem.sop_reference, master_problem.adidas_spec, count(log_roving_qc.id_problem) as jumlahfrom master_problem inner join log_roving_qc on master_problem.id_problem = log_roving_qc.id_problem group by master_problem.id_problem but the empty data does not show. I want to display blank data with a description of 0