I need to get the ID based from what ever the max amount is. Below is giving me an error
   select  ID from Prog 
   where Amount = MAX(Amount)
An aggregate may not appear in the WHERE clause unless it is in a subquery contained in a HAVING clause or a select list, and the column being aggregated is an outer reference.
The end result is that I need to get the just the ID as I need to pass it something else that is expecting it.
 
     
     
     
     
     
    