Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

Analytics Table Column name

Imran
New Contributor
New Contributor

Hi Team,

We need to fetch the username who created the Analytics Report. Can you please help with the Cloumn name to fetch the details?

Regards,

Imran Syed

6 REPLIES 6

rushikeshvartak
All-Star
All-Star

SELECT a.analyticsname,
       a.displayname,
       a.description,
       ah.fieldname,
       ah.newvalue,
       ah.oldvalue,
       ah.updatedate,
       u.username AS updatedby
FROM   analyticsconfig_history ah,
       analyticsconfig a,
       users u
WHERE  ah.fieldname LIKE '%Creating New Analytics%'
       AND ah.analyticsconfigkey = a.analyticskey
       AND u.userkey = ah.updateuser
UNION
SELECT a.analyticsname,
       a.displayname,
       a.description,
       ah.fieldname,
       ah.newvalue,
       ah.oldvalue,
       ah.updatedate,
       u.username AS updatedby
FROM   analyticsconfiges_history ah,
       analyticsconfiges a,
       users u
WHERE  ah.fieldname LIKE '%Creating New Analytics%'
       AND ah.analyticsconfigeskey = a.analyticskey
       AND u.userkey = ah.updateuser 


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

Hi Rushikesh - The above query is giving zero results.

Check action name from below query and update in above query. Shared query worked in v5.5

Select distinct fieldname from analyticsconfiges_history 

che


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

Updated query 

SELECT a.analyticsname,
       a.displayname,
       a.description,
       ah.fieldname,
       ah.newvalue,
       ah.oldvalue,
       ah.updatedate,
       u.username AS updatedby
FROM   analyticsconfig_history ah,
       analyticsconfig a,
       users u
WHERE  ah.fieldname LIKE '%Creat%'
       AND ah.analyticsconfigkey = a.analyticskey
       AND u.userkey = ah.updateuser
UNION
SELECT a.analyticsname,
       a.displayname,
       a.description,
       ah.fieldname,
       ah.newvalue,
       ah.oldvalue,
       ah.updatedate,
       u.username AS updatedby
FROM   analyticsconfiges_history ah,
       analyticsconfiges a,
       users u
WHERE  ah.fieldname LIKE '%Creat%'
       AND ah.analyticsconfigeskey = a.analyticskey
       AND u.userkey = ah.updateuser 


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

Rajesh-R
Saviynt Employee
Saviynt Employee

@Imran - Please try below:

SELECT a.analyticsname,
       a.displayname,
       a.description,
       ah.fieldname,
       ah.newvalue,
       ah.oldvalue,
       ah.updatedate,
       u.username AS updatedby
FROM   analyticsconfiges_history ah,
       analyticsconfiges a,
       users u
WHERE  ah.fieldname LIKE '%Analytics created%'
       AND ah.analyticsconfigeskey = a.analyticskey
       AND u.userkey = ah.updateuser;

Thanks
Rajesh Ramalingam
Saviynt India

Manu269
All-Star
All-Star

@Imran can you check below query :

Note : There are few columns which cannot be used as IS. example update date as it gives error and cant be used. Hence alias has to be added.

SELECT a.analyticsname As 'Analytics Name',
a.displayname as 'Analytics Display Name',
a.description as 'Analytics Description',
ah.fieldname,
ah.updatedate as 'Date Update',
u.username AS 'Updated By'
FROM analyticsconfiges_history ah,
analyticsconfiges a,
users u
WHERE ah.fieldname LIKE '%Analytics created%'
AND ah.analyticsconfigeskey = a.analyticskey
AND u.userkey = ah.updateuser;

Regards
Manish Kumar
If the response answered your query, please Accept As Solution and Kudos
.