anonymous
2011-11-07 11:02:25 UTC
id gametype point gdate
1 1000 4 7/30/2009
1 1000 5 8/30/2009
I have a sql
SELECT id, gametype, min(point) from Score
GROUP BY id, gametype;
The above sql gives me the minimum score which is what I need.
However, if I try to include the date also
ie
SELECT id, gametype, min(point), gdate from Score
GROUP BY id, gametype, gdate;
then my sql returns me both the rows.
My goal is to retrieve the row having minimum point for the same id and gametype.
Could anyone help me to see what I am missing here.
Thank you very much