Árvore de páginas

Versões comparadas

Chave

  • Esta linha foi adicionada.
  • Esta linha foi removida.
  • A formatação mudou.
HTML
<center><font size="5000"> CONTROLE DE ERROS ABERTOS - SEGUNDO TRIMESTRE </font></center>

 

 

Gráfico
bgColorblack
orientationvertical
height600
width1200
showShapesfalse
typeline
 012345678910111213
META0153045607590105120 135 150165  180195
1o Trimestre027477187112140150165182210228248261
2o Trimestre013285273107126148170194223250273297
3o Trimestre01335           

 

 

 

HTML
<center><font size="2500">Número de erros que entraram:</font></center>

SQL
dataSourceSIA
stylebackground-color:black;color:yellow; font-weight:bold;font-size:3.8em;
rowOrientationhorizontal
retainRowStyleOrderfalse
SELECT 
SUM(CASE WHEN current_date = P.dtInicio then 1 else 0 end) as "Hoje",
SUM(Case when cast(EXTRACT(WEEK FROM current_date) as integer) = cast(EXTRACT(WEEK FROM P.dtInicio) as integer) then 1 else 0 end) as "Semana ",
SUM(Case when EXTRACT(MONTH FROM current_date) = EXTRACT(MONTH FROM P.dtInicio) then 1 else 0 end) as "Mês   ",
COUNT(*) as "Trimestre"
FROM esiaprocesso p
LEFT JOIN esiaCategoriaEvento c ON p.cdCategoriaevento = c.cdCategoriaEvento
LEFT JOIN esiaTipoPendencia tp ON p.cdTipoPendencia = tp.cdTipoPendencia
WHERE  date_part('year',p.dtInicio) >= 2018
and date_part('MONTH',p.dtInicio) >= 7
Andand c.cdCategoriaEvento = 2
and tpp.cdTipoPendencia = 1
and p.cdEntidade <> 526
and p.cdProduto in (3,10,12,4,8,16,21)