Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
software:dashboard:analyses:administrative_analyses_oracle [2016/09/22 14:36] martin.oehm [Anzahl an erstellten Usern pro Monat] |
software:dashboard:analyses:administrative_analyses_oracle [2021/07/01 09:52] (aktuell) |
||
---|---|---|---|
Zeile 3: | Zeile 3: | ||
<code sql> | <code sql> | ||
select | select | ||
- | concat(to_char(iden.creationtime,'yy'), to_char(iden.creationtime,'mm')) AS Month, | + | concat(to_char(iden.creationtime,'yy'), to_char(iden.creationtime,'mm')) AS Monat, |
- | SUM(1) as Count, | + | SUM(1) as Anzahl, |
(select | (select | ||
count(*) from view_identity | count(*) from view_identity | ||
where identitytype = 'USER' and | where identitytype = 'USER' and | ||
concat(to_char(creationtime,'yy'), to_char(creationtime,'mm')) <= concat(to_char(iden.creationtime,'yy'), to_char(iden.creationtime,'mm')) | concat(to_char(creationtime,'yy'), to_char(creationtime,'mm')) <= concat(to_char(iden.creationtime,'yy'), to_char(iden.creationtime,'mm')) | ||
- | ) as Total | + | ) as Gesamt |
from view_identity iden where identitytype = 'USER' | from view_identity iden where identitytype = 'USER' | ||
group by concat(to_char(iden.creationtime,'yy'), to_char(iden.creationtime,'mm')) | group by concat(to_char(iden.creationtime,'yy'), to_char(iden.creationtime,'mm')) | ||
</code> | </code> |