I have this two querys, I'm trying to make a left join to get some data, but i don't success
the first query i get is
SELECT parte, sum(cantidad) FROM `directoscount` where deleted_at is null group by parte
this is the result that i have with that query and is correct
and the second is
select material, sum(totalStock) from lx02 group by material
and this is the second result
I want to make a left join and i try with something like this
SELECT directoscount.parte, SUM(directoscount.cantidad), lx02.material, SUM(lx02.totalStock) FROM directoscount LEFT JOIN lx02 ON directoscount.parte = lx02.material GROUP BY directoscount.parte, lx02.material
and the result of my query bring data to much different


