It is possible to get returnDistinctValues functionality from AGS 10.1 in AGS 10.0?
From ArcGIS Server REST API:
New in 10.1 SP1 Support for a new parameter called returnDistinctValues that accepts a boolean value was added. When true query result would contain distinct values based on the fields specified in outFields parameter.
Maybe someone knows some smart query?