I have problem with my query. I have two tables and I want join them to get the results based on primary key on first table, but I missing 1 data from first table.
as you can see, I missing "xx3" from month 1
I have tried to change left and right join but, the results stil same.
So as you can see I have to set coalesce(sum(b.sd_qty),0) as total, if no qty, set 0 as default.
