Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

User-Related

This article offers examples for a user administration related analyses with the dashboard.


Number of created and total users per month

SELECT
CONCAT(CONCAT(to_char(ident.CREATIONTIME,'yyyy'), '-'), to_char(ident.CREATIONTIME,'mm')) AS "Month",
SUM(1) AS "Number",
(
SELECT
COUNT(*)
FROM view_identity
WHERE identitytype = 'USER' AND
CONCAT(CONCAT(to_char(CREATIONTIME,'yyyy'), '-'), to_char(CREATIONTIME,'mm')) <=
CONCAT(CONCAT(to_char(ident.CREATIONTIME,'yyyy'), '-'), to_char(ident.CREATIONTIME,'mm'))
) AS "Total"
FROM view_identity ident WHERE identitytype = 'USER'
GROUP BY CONCAT(CONCAT(to_char(ident.CREATIONTIME,'yyyy'), '-'), to_char(ident.CREATIONTIME,'mm'))
ORDER BY CONCAT(CONCAT(to_char(ident.CREATIONTIME,'yyyy'), '-'), to_char(ident.CREATIONTIME,'mm'));

  • No labels