1
I need to know how I can do a search in mysql to know how many documents I have to analyze with a condition that if the previous process is not released it cannot count.
SELECT COUNT(`num`),
CASE WHEN (`pl_de_manutencao` = 'Liberado' || `pl_de_manutencao` = 'N/A'
AND `ra_padrao` != 'Liberado' || `ra_padrao` != 'N/A')
THEN COUNT(`num`) END AS `Count`
FROM `ind_master_view`
something like this code.
Try edit and add expected results and their table structure, something like this question.
– Marconi
already placed to group and it measures the values, however I need the total value
– Gisele