Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung Nächste Überarbeitung Beide Seiten der Revision | ||
software:dashboard:analyses:instance_analyses_oracle [2016/09/22 13:57] martin.oehm |
software:dashboard:analyses:instance_analyses_oracle [2016/09/22 14:50] martin.oehm [Durchschnittliche Anzahl an gestarteten Instanzen je Tag pro Monat (bei 22 Arbeitstagen im Monat)] |
||
---|---|---|---|
Zeile 7: | Zeile 7: | ||
group by concat(to_char(inst.creationtime,'yy'), concat(to_char(inst.creationtime,'mm'), to_char(inst.creationtime,'dd'))) | group by concat(to_char(inst.creationtime,'yy'), concat(to_char(inst.creationtime,'mm'), to_char(inst.creationtime,'dd'))) | ||
</code> | </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 ==== | ==== Anzahl an gestarteten Instanzen je Monat ==== | ||
<code sql> | <code sql> |