Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

Advance sql query for find numeric employeeid

priyag
New Contributor
New Contributor

Hi all ,
I need to find numeric employee ID in technical rule facing error ,while executing the advanced SQL query in technical rule showing invalid condition but successfully executed on SQL builder. Could you please help me on this.
select empid from users where empid REGEXP '^[0-9]+$'; -----> executed in SQL builder

 

3 REPLIES 3

Manu269
All-Star
All-Star

I doubt you can use regex.

Regards
Manish Kumar
If the response answered your query, please Accept As Solution and Kudos
.

priyag
New Contributor
New Contributor

can ypu pls provide regex syntax

rushikeshvartak
All-Star
All-Star

a.statuskey = 1 and a.employeeid is not null and a.employeeid !='' and LENGTH(a.employeeid) = LENGTH(TRIM(a.employeeid)) and LENGTH(a.employeeid) = LENGTH(REPLACE(a.employeeid, '0', '')) + LENGTH(REPLACE(a.employeeid, '1', '')) + LENGTH(REPLACE(a.employeeid, '2', '')) + LENGTH(REPLACE(a.employeeid, '3', '')) + LENGTH(REPLACE(a.employeeid, '4', '')) + LENGTH(REPLACE(a.employeeid, '5', '')) + LENGTH(REPLACE(a.employeeid, '6', '')) + LENGTH(REPLACE(a.employeeid, '7', '')) + LENGTH(REPLACE(a.employeeid, '8', '')) + LENGTH(REPLACE(a.employeeid, '9', ''))


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.