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

comparing array values using 'in' operator in Saviynt runtime analytics.

Anurag
Regular Contributor
Regular Contributor

Hi Team,

We have a requirement to send and compare multiple values through runtime analytics.

we are trying to create analytics query like below using in operator but it does not compare all the items sent.

select campaignkey from certification where certkey in (67,23,32,42)

select campaignkey from certification where certkey in $'({CERTKEY})'

is there any way to create an analytics where we can compare a column with list of data?

5 REPLIES 5

rushikeshvartak
All-Star
All-Star

Use find_in_set


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

Anurag
Regular Contributor
Regular Contributor

Hi Rushikesh,

Thanks for your response.

Can you please share a sample query or point to documentation link, I tried using find_in_set and selected attribute type as string(other types required some default values) getting blank dialog box as error on preview.

Anurag_0-1670217321748.png

select campaignkey from certification where certkey find_in_set $'{CERTKEY}' --blank dialog box as error on preview

select campaignkey from certification where certkey find_in_set $'[CERTKEY]' --preview does not work and on create button the web page goes in indefinite loading state.

https://www.w3schools.com/sql/func_mysql_find_in_set.asp


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

find_in_set function won't work for our use case.

we will be sending multiple cert keys from our code, and from analytics we will need to return the certifications for all these cert keys.
Analytics should be able to receive this list of cert keys for comparison.

select campaignkey from certification where certkey in (${CERTKEY})


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