Select to view content in your preferred language

CASE Statements in Definition Query

3573
13
11-18-2022 02:22 PM
Status: Open
Labels (1)
MatthewGeorge
Frequent Contributor

I'd like to see support for CASE statements in a Definition Query, particularly where the data is in an Enterprise Geodatabase (SDE) with a database engine that does support this sort of query.

Tags (3)
13 Comments
Bud
by

For our notes, here's an example of your syntax working in SQL Server (the test has nothing to do with ArcGIS Pro):

https://dbfiddle.uk/shBxoaUj

Bud_0-1668906696036.png

 

Bud
by

How'd it turn out?

MatthewGeorge

@Bud 

Sub query didn't work but I just realised I didn't test it against non-versioned data so will give that a try tomorrow.