and more in a single search tool across platforms. Read the announcement here. |
12/04/2022 08:49 PM
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?
Solved! Go to Solution.
12/04/2022 08:52 PM
Use find_in_set
12/04/2022 09:18 PM
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.
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.
12/04/2022 09:48 PM
https://www.w3schools.com/sql/func_mysql_find_in_set.asp
12/04/2022 10:10 PM
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.
12/04/2022 10:15 PM
select campaignkey from certification where certkey in (${CERTKEY})