I've ran the following query to find out the access rights assigned to each user :
SELECT DISTINCT
A.GRANTEE AS DB_ACCOUNT,
B.PRIVILEGE AS ACCESS_RIGHTS
FROM SYS.EXA_DBA_ROLE_PRIVS A
INNER JOIN SYS.EXA_DBA_SYS_PRIVS B
ON A.GRANTED_ROLE = B.GRANTEE;
The output of the query has each user having multiple access rights listed in row by row format, I need all ACCESS_RIGHTS listed into a single row for each user.
For Eg.: The output comes like this for all the users:
EXECUTE
SELECT
CREATE
whereas I need the output as :
EXECUTE, SELECT, CREATE
I NEED A FUNCTION IN EXASOL.
Thanks in advance :)