I'm using ArcGIS server 10.04 for my project and I cannot upgrade to 10.1 anytime soon. However, I need to achieve a function similar to this example: http://resources.arcgis.com/en/help/flex-api/samples/index.html#//01nq00000070000000 Basically what I am trying to do is to get a list of points with top occurrences in a category (for example, the top 5 area with highest state counts) I would appreciate it if anyone suggest me a way to do this in ArcGIS 10.