how to get zero value in group by ? I have a query like this
SELECT cb.pk_id
, cb.name
, date_format(sa.reg_date,'%M %Y') as bulan
, COUNT(sa.qty) AS count
FROM tbl_pic cb
LEFT JOIN tbl_asset sa ON cb.pk_id = sa.pic
GROUP BY cb.pk_id
, cb.name
, cb.identity
, year(reg_date)
, month(reg_date)
with result like this
i want to get zero value on non-existent month result like this
is it possible ? Thank you