May 25, 2005 #1 JazzMaan Programmer Jun 15, 2004 57 US I have the following scenario store_id , amount 1, 20 1, 33 2, 39 3, 31 I would like to get the distinct records containg the store_id and the max amount. I have tried: select store_id, max(amount) from store group by store_id, amount
I have the following scenario store_id , amount 1, 20 1, 33 2, 39 3, 31 I would like to get the distinct records containg the store_id and the max amount. I have tried: select store_id, max(amount) from store group by store_id, amount
May 25, 2005 1 #2 gmmastros Programmer Feb 15, 2005 14,910 US Close. Try this. Code: select store_id, max(amount) from store group by store_id -George Strong and bitter words indicate a weak cause. - Fortune cookie wisdom Upvote 0 Downvote
Close. Try this. Code: select store_id, max(amount) from store group by store_id -George Strong and bitter words indicate a weak cause. - Fortune cookie wisdom