Select to view content in your preferred language

Is SELECT MAX possible with a Query.where?

1010
0
09-09-2011 06:26 AM
MartynLe_Butt
Deactivated User
Am trying to retrieve an entry in a table (Oracle then SDE) that has a maximum value in one of it's fields but cannot get it right:

query.where = "OBJECTID=(SELECT MAX(OBJECTID) FROM TABLE_NAME)";

fails.

Is this functionality supported in the flex api (the equivilent call works from the service's query form) or have I just got the syntax wrong?

Thanks

Martyn
Tags (2)
0 Kudos
0 Replies