Il problema è che store con id 1 ha due record corrispondenti nella tabella store_sub, quindi il suo qty viene contato due volte. Devi sommare ciascuna tabella separatamente in sottoselezioni e poi unire i totali:
select t1.department, t1.sqty, t2.ssubqty from ( select department, sum(qty) as sqty from store group by department ) t1 left join ( select s2.department, sum(s1.sub_qty) as ssubqty from store_sub s1 inner join store s2 on s1.parent_id = s2.id group by s2.department ) t2 on t1.department = t2.department Aggregare ciascuna tabella per conto proprio prima della join evita la duplicazione che stava gonfiando le tue somme.