create table checks { id serial, payee text, amount double }; select max(amount), payee, id from checks group by payee;Why won't the above work? Is there another way to get the id for the record with the highest amount for each payee?
Thanks.
create table checks { id serial, payee text, amount double }; select max(amount), payee, id from checks group by payee;Why won't the above work? Is there another way to get the id for the record with the highest amount for each payee?
Thanks.