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

SQL with CTE (Common Table expression) not supported.

ChrisBellobuono
New Contributor III
New Contributor III

It appears Saviynt does not support SQL containing CTEs (Common Table expression), specifically something as simple as this:

 

with
  tmp as (
    select USERKEY
    from USERS
    where FIRSTNAME = 'John' and LASTNAME = 'Smith'
  )
select * from tmp

 

CTE_Error_1a.png

It may related to the parentheses because when I close the error box Current Query line only contains what is in them

CTE_Error_1b.png

For example, if I try to execute this:

 

select version()

 

It fails as well.

Parens_Issue.png

We are currently on 24.1.  Can someone verify whether or not Saviynt does support CTEs, and if it does, tell me what I am doing wrong?

2 REPLIES 2

rushikeshvartak
All-Star
All-Star

Its not supported in v24.1 as well


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

ChrisBellobuono
New Contributor III
New Contributor III

Which I find really odd since it supports more advanced syntax like:

select
  ...
  count(*) over (partition by FIRSTNAME, LASTNAME) as num_name,
  ...

I also noticed that it will fail if there is any whitespace in front of the select.

I will open a ticket to get both items fixed.