I have a table with columns -- ims_num, last_name, pres_num, territory_num
I need retrieve the max pres_num grouped by territory
I got so far
select max(pres_num) from table
group by territory_num
I need to show all the data -- ims_num, last_name, pres_num, territory_num