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

Sort Value with specific values in First

Shraddha
New Contributor III
New Contributor III

Hello Saviynters,

I am trying below query expecting to have these values on top however its not happening. Tested in Data Analyzer 

1. Evercheck Administration Group (ADMIN)

2. Drive Administrator (Drive_Administrator)

 

 

 

select ev.ENTITLEMENT_VALUE from entitlement_values ev, entitlement_types et
where ev.ENTITLEMENTTYPEKEY = et.ENTITLEMENTTYPEKEY and
et.endpointkey = 450 ORDER BY CASE WHEN ev.ENTITLEMENT_VALUE = 'Evercheck Administration Group (ADMIN)' THEN 1
WHEN ev.ENTITLEMENT_VALUE = 'Drive Administrator (Drive_Administrator)' THEN 2
ELSE 3 END

Output I get normal list only , not these two values at top.

Any Solution?

Best Regards

Shraddha

3 REPLIES 3

rushikeshvartak
All-Star
All-Star

Please provide screenshots. Saviynt by default sort on first column of result


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

Shraddha_0-1726481255060.png

Not getting expected result with above mentioned query.  However everywhere its suggested , using case will sort values as per given index.   Kindly help me on how to manage this.

 

Result is A-z which is expected , Share query in text format with expected result


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