I have an attribute table that I would like to select the max value in a particular column (grid_code) per each group (ORIC_X) of rows. It looks like you can only write a WHERE statement using the Select tool and I have attempted using the python window with no luck (I'm very new to python though). Below is the SQL that I would normally use. However, I need to use a tool that I can include in ModelBuilder. I'm mostly self taught, so I'm sure there is something that I'm missing. Or maybe I'm just searching by the wrong keywords.
Any help would be greatly appreciated!
SELECT * FROM AUs_Only_SpatialJoin
GROUP BY ORIC_X
MAX (grid_code);
Any help would be greatly appreciated!
SELECT * FROM AUs_Only_SpatialJoin
GROUP BY ORIC_X
MAX (grid_code);