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

Which version of MySQL is used in Saviynt 5.5Sp3.12.15

AJ23494
New Contributor II
New Contributor II

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 ;

8 REPLIES 8

AJ23494
New Contributor II
New Contributor II

Paul_Meyer
Regular Contributor
Regular Contributor

Create a New Analytics Configuration, enter "SELECT VERSION()" as Analytics Query and click on Preview.

Paul_Meyer_0-1669635809764.png

rushikeshvartak
All-Star
All-Star

What are you trying to achieve using query.

for Version you can check using data analyzer

rushikeshvartak_0-1669658979686.png


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

AJ23494
New Contributor II
New Contributor II

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




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.

DataAnalyZerVersionError.png

Any suggestions.

Please raise freshdesk ticket to get required information


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

AJ23494
New Contributor II
New Contributor II

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

Hi Ankit,

The above link helped.

Thanks
Sunitha K