Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
software:dashboard:analyses:instance_analyses_oracle [2016/06/02 09:29] martin.oehm [Anzahl an gestarteten, beendeten, abgebrochenen und laufenden Instanzen je Prozessdefinition] |
software:dashboard:analyses:instance_analyses_oracle [2016/09/22 14:58] martin.oehm [Anzahl an gestarteten Instanzen je Tag] |
||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
=====Instanzbezogene Auswertungen===== | =====Instanzbezogene Auswertungen===== | ||
+ | ==== Anzahl an gestarteten Instanzen je Tag ==== | ||
+ | <code sql> | ||
+ | SELECT | ||
+ | concat(to_char(inst.creationtime,'yy'), concat(to_char(inst.creationtime,'mm'), to_char(inst.creationtime,'dd'))) AS Tag, SUM(1) as Anzahl | ||
+ | FROM view_instance inst | ||
+ | group by concat(to_char(inst.creationtime,'yy'), concat(to_char(inst.creationtime,'mm'), to_char(inst.creationtime,'dd'))) | ||
+ | </code> | ||
+ | |||
+ | ==== Durchschnittliche Anzahl an gestarteten Instanzen je Tag pro Monat (bei 22 Arbeitstagen im Monat) ==== | ||
+ | <code sql> | ||
+ | SELECT | ||
+ | concat(to_char(inst.creationtime,'yy'), to_char(inst.creationtime,'mm')) AS Monat, ROUND(SUM(1)/22,1) as "Durchschnitt pro Tag" | ||
+ | FROM view_instance inst | ||
+ | group by concat(to_char(inst.creationtime,'yy'), to_char(inst.creationtime,'mm')) | ||
+ | </code> | ||
+ | |||
+ | ==== Anzahl an gestarteten Instanzen je Monat ==== | ||
+ | <code sql> | ||
+ | SELECT | ||
+ | concat(to_char(inst.creationtime,'yy'), to_char(inst.creationtime,'mm')) AS Monat, SUM(1) as Anzahl | ||
+ | FROM view_instance inst | ||
+ | group by concat(to_char(inst.creationtime,'yy'), to_char(inst.creationtime,'mm')) | ||
+ | </code> | ||
+ | |||
==== Anzahl an gestarteten und beendeten Instanzen je Definition ==== | ==== Anzahl an gestarteten und beendeten Instanzen je Definition ==== | ||
<code sql> | <code sql> | ||
Zeile 115: | Zeile 139: | ||
LEFT JOIN view_identity ident | LEFT JOIN view_identity ident | ||
ON task.actor = ident.id | ON task.actor = ident.id | ||
- | INNER JOIN view_identity ident2 | + | LEFT JOIN view_identity ident2 |
ON task.pooledActor = ident2.id | ON task.pooledActor = ident2.id | ||
WHERE inst.archiv = 0 | WHERE inst.archiv = 0 |