colores:#26538C11
Juzgado: 1106
31
Juzgado: 1107
23
Juzgado: 1108
15
Juzgado: 1109
15
Juzgado: 1110
31
Juzgado: 1111
63
Juzgado: 1112
24
SELECT juzgado,DESCRIP,count(id_ac) as C,nombre_check as JUICIO FROM acuerdos.audiencias_checkbox ac INNER JOIN acuerdos.entradas e ON ac.cu_ac = e.cu join juzgados j on j.codigo = e.juzgado WHERE (substr(cu_ac, 1, 4) = '1106' OR substr(cu_ac, 1, 4) = '1107' OR substr(cu_ac, 1, 4) = '1108' OR substr(cu_ac, 1, 4) = '1109' OR substr(cu_ac, 1, 4) = '1110' OR substr(cu_ac, 1, 4) = '1111' OR substr(cu_ac, 1, 4) = '1112' OR substr(cu_ac, 1, 4) = '0403') AND estatus_check = 'A' AND nombre_check = 'Conclusión por convenio' AND tipo_actor = 'A' AND e.fecha>='2021-09-20' and e.fecha<='2024-04-20' group by nombre_check,juzgado;