Click HERE to see how Saviynt Intelligence is transforming the industry. |
08/11/2024 09:47 PM
Hi Team,
Need help in query for getting the timestamp for user's job function change. My requirement is to fetch the list of users whose job function was changed in the previous month. Let me know if any other info is required.
Regards,
Sharada
Solved! Go to Solution.
08/11/2024 10:08 PM
Query
select
u.username,
u.userkey as userkey,
uh.changelog
from
users u inner join usershistory uh on u.userkey = uh.userkey
where
username is NOT NULL
and uh.UPDATEDATE >= DATE_SUB(CURDATE(), INTERVAL 30 DAY)
and changelog like '%job_function%'
08/12/2024 04:04 AM
Thanks for the response @Rushikesh. I tried the above query, but the output is not as expected. The change log column display some random values.
Rgard,
Sharada
08/12/2024 04:39 AM - edited 08/12/2024 04:39 AM
select
u.username,
u.userkey as userkey,
uh.changelog
from
users u inner join usershistory uh on u.userkey = uh.userkey
where
username ='Rushi'
and uh.UPDATEDATE >= DATE_SUB(CURDATE(), INTERVAL 30 DAY)
Validate with one user, share output and accordingly change your query
08/13/2024 02:44 AM
Hi @rushikeshvartak : The above query also gave the same random output for changelog column. PFB the output for one specific user. Let me know if any changes need to be made.
08/13/2024 03:53 AM
Hi @Sharada ,
Run it twice!
The first time when you run, yes, I also see it in encrypted value.
The second time, its show you right values:
Note: This is only one-time activity, from the second run, it will generate right values
If this helps, please consider selecting Accept As Solution and give Kudos
08/13/2024 04:10 AM
@PremMahadikar : Thank you for the reply. I did try running it twice but got the same output (encrypted Values) both times.
Regards,
Sharada
08/13/2024 05:41 AM - edited 08/13/2024 05:41 AM
This is known issue in 24.4 and fixed in v24.5