我的查詢是忽略在MySQL
SELECT cod_material, (sum(cantidad_actual > 0))>1 AS cantidad FROM ingreso_material GROUP BY cod_material ORDER BY cod_material ASC
我的結果是
cod_material cantidad
10001 1
10002 0
10004 0
10006 0
10007 0
10008 0
10010 0
10011 0
10012 0
10013 0
322010001 0
322030001 0
322060001 0
322060002 0
343310004 1
391290001 1
391290002 0
391290010 1
395050004 0
395090003 0
395090004 0
395090005 0
395090010 0
395090011 0
395140001 0
397300013 1
我需要忽略cod_material已在cantidad 0值,我想忽略與價值觀0我該怎麼做?