**** I have a table called places and the field I want to count is called state the values that can have states is 0 = processed, 1 = accepted, 2 = rejected I want you to print them like that, I already did count but I get row by row and don sum if it would appear as the image but I do not understand how ****
This is the query you try but the sum does not count
SELECT sum(IF(estado=0,1,2)) as "tramite", sum(IF(estado=1,2,0))
as "Aceptado", sum(IF(estado=2,0,1)) as "Rechazado" FROM lugares