In SQL, it is easy to get distinct values from a table. When open a map service on browser, how can retrieve distinct values of an attribute using a query statement? Thanks.
starting at 10.1 SP2, map service's query operation allows you to get unique values. All you need to do is set "OutFields" to that field from where you need to extract the unique value and set "returnDistinctValue" to True