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

Upper case and Lower case in Customquery

Varshi_Balaji
Regular Contributor
Regular Contributor

Hi Team,

Can anyone give any example how we can user uppercase and lower case function in customquery.

 

Regards,

Varshita

3 REPLIES 3

rushikeshvartak
All-Star
All-Star

update users set customproperty1 =lower(firstname), customproperty2 = upper(firstname) where username='admin' limit 1;


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

Varshi_Balaji
Regular Contributor
Regular Contributor

Hi Rushikesh,

Can we use case also in customquery?

Requirement is we need to combine case statements , upper and lower functions.

Thanks,

Varshita

Yes all sql function works 

update users set customproperty1 = case when userkey=1 then lower(firstname) else null end , customproperty2 = upper(firstname) where username='admin' limit 1;


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