I need a select
in which to search for tipo status
and responsave
l, only that it is catching by several Status, while only needing a count
status A
count(if(r.reponsavel mae,if(t.tipo=1 ir t.tipo =2)if(t.status = 'A'),null),null),null)
Table Responsavel: colunm responsavel
Table Tipos: Colunm tipo, status