A nice solution (not tested yet though) has been submitted on the second post of this thread:
http://www.developpez.net/forums/viewtopic.php?p=1959601
BEWARE: it's written en French :p
NB_LOGINS_ROLE_A and NB_LOGINS_ROLE_B aren't columns of the HABILIT table. This table has the 3 columns LOGIN_DATE (date), LOGIN (varchar2) and ROLE (varchar2).
Therefore, a "count(<SOMETHING>)" must be used with a "group by LOGIN_DATE" (formatted as 'DD/MM/YYYY').
Hope it helps clarify the...
I have a table HABILIT, whose columns are the following: LOGIN_DATE (date), LOGIN (varchar2), ROLE (varchar2).
Each time a user logs into the web application, an INSERT query is done, inserting the LOGIN and ROLE (application role) of that user at SYSDATE.
Only 2 roles exist : A or B.
Now, what...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.