in reply to Re^2: More MySQL woes
in thread More MySQL woes
If you ask me it should match up the rows by default. Either way, hopefully this'll save someone else from a lot of stressSELECT pl.username, amount, pl1.date FROM paylist pl1 JOIN ( SELECT username, MAX( date ) AS date FROM paylist pl2 GROUP BY username ) AS pl2 ON pl1.username = pl2.username AND pl1.date = pl2.date
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: More MySQL woes
by jhourcle (Prior) on Jan 20, 2008 at 21:59 UTC | |
by chrism01 (Friar) on Jan 21, 2008 at 05:05 UTC | |
by dsheroh (Monsignor) on Jan 21, 2008 at 17:39 UTC |