I need to know how I can do a search in mysql to know how many documents I have to parse with a condition that if the previous process is not released it can not 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.