and more in a single search tool across platforms. Read the announcement here. |
11/28/2022 12:40 AM
Hi Experts ,
I am trying to run the below query but it's giving me error . I suspect that this is due to Mysql version not supporting CTE . Could you please confirm which version of Mysql is being used in Saviynt 5.5Sp3.12.15
with recursive emp_hierarchy as
(
select employeeid ,firstname , lastname from users where jobcodedesc='Xyz'
union
select u.employeeid ,u.firstname , u.lastname
from emp_hierarchy H
join users u on H.manager=u.userkey
)
select * from emp_hierarchy ;
11/28/2022 01:13 AM
@rushikeshvartak@sahajranajee: Please suggest
11/28/2022 03:43 AM - edited 11/28/2022 03:44 AM
Create a New Analytics Configuration, enter "SELECT VERSION()" as Analytics Query and click on Preview.
11/28/2022 10:09 AM - edited 11/28/2022 10:09 AM
What are you trying to achieve using query.
for Version you can check using data analyzer
11/29/2022 12:22 AM
Hi Ruskikesh ,
i want to run a recursive query CTE in order to get hieraichical user data under VP . While trying to run the query it says that only select query allowed .
Query given below for your reference .
with recursive emp_hierarchy as
(
select employeeid ,firstname , lastname from users where jobcodedesc='EVP Global Operations'
union
select u.employeeid ,u.firstname , u.lastname
from emp_hierarchy H
join users u on H.manager=u.userkey
)
select * from emp_hierarchy ;
Thanks
Ankit Jindal
11/29/2022 06:18 AM
Hi,
I am also facing the same issue while trying to use recursive CTE for the same purpose ( trying to retrieve hierarchical manager details) , and not able to get the version even from both Data Analyzer as well as from analytics.
Any suggestions.
11/29/2022 07:30 AM
Please raise freshdesk ticket to get required information
11/29/2022 07:59 AM
Hi Sunita ,
Looks like it's related to the MySQL version being used by SSM i.e. 5.7.x . CTE is supported in later versions of MySQL
Please refer this link for more details :
https://stackoverflow.com/questions/20215744/how-to-create-a-mysql-hierarchical-recursive-query
Thanks & Regards ,
Ankit Jindal
11/30/2022 02:57 AM
Hi Ankit,
The above link helped.
Thanks
Sunitha K