Re: How to get MAX of each group after GROUP BY ?

2001-02-28 Thread Bob Hall
> >How do I do a single query to group a table by one column & then get >the row of say the highest of each group ? > >Data is like so : > Album, City, Plays, Date > >Britney, NYC, 103, 1-10 > >Britney, SF, 101, 1-10 > >Eminem, NYC, 100, 1-11 > >Eminem, SF, 102, 1-11 > >So I want to GROUP BY Alb

How to get MAX of each group after GROUP BY ?

2001-02-26 Thread S A
How do I do a single query to group a table by one column & then get the row of say the highest of each group ? Data is like so : Album, City, Plays, Date Britney, NYC, 103, 1-10 Britney, SF, 101, 1-10 Eminem, NYC, 100, 1-11 Eminem, SF, 102, 1-11 So I want to GROUP BY Album, then get