SELECT count(id) as new AND status IN ('pgto_confirmado', 'pending'), count(id) as fup AND status IN ('processing'), count(id) as ce AND status IN('confirmar_entrega'), count(id) as complete AND status IN ('complete', 'repassado')
FROM sgn_tbd_pedido
WHERE data_entregar LIKE '%2018-03-08%'
GROUP BY cidade;
I would like it to return for example:
Cidade NEW FUP CE COMPLETE Campinas 19 11 5 100