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...