If I have a simple query below as
select ID, sum(amount)
from table
where sum(amount) > 200
group by ID
limit 1
that gives me the ID with the highest total spend
if I am doing same in sql engine that does not except limit, but top how would I replace limit here with top?
Thanks