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/28 10:12] martin.oehm [Aktuelle Aktivität(en) und Bearbeiter aller offenen Instanzen] |
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> |