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

Advanced query in Job control

Joon
Regular Contributor II
Regular Contributor II

I am trying to pick and provision to target depending on the account name.

Can you please give me an advice to make this work? 

 

select at.taskkey in (select a.taskkey
from Arstasks a, Accounts aa
where a.accountkey=aa.accountkey and aa.name like '%-1'
and aa.endpointkey='1581')
3 REPLIES 3

naveenss
All-Star
All-Star

Hi @Joon,

Please see the sample Query below. Make the necessary modifications as per your requirement.

and at.taskkey in (select at1.taskkey from arstasks at1,accounts aa,endpoints ed where at1.accountkey=aa.accountkey and at1.endpoint=ed.endpointkey and aa.name like 'abc.%' and ed.endpointname='ABC' and at1.status=1)

Let me know if this helps!

 

Regards,
Naveen Sakleshpur
If this reply answered your question, please click the Accept As Solution button to help future users who may have a similar problem.

AmitM
Valued Contributor
Valued Contributor

HI @Joon , Job control advance queries are SQL and not HQL. You need to use :

and at.taskkey in (select a.taskkey from arstasks a, accounts aa where a.accountkey=aa.accountkey and aa.name like '%-1' and aa.endpointkey='1581')

Thanks,

Amit

If this answers your query, Please ACCEPT SOLUTION and give KUDOS.

rushikeshvartak
All-Star
All-Star

Its straight forward query

and at.accountname like '%-1' and at.endpoint=1581

rushikeshvartak_0-1709094643533.png

 


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