MySQL group by a certain type and select the latest row?
问题 Imagine a table with columns type, date, message. And some rows looking like this (type | date | message): 1 | 1310572318 | Hello 1 | 1310572317 | Hi 2 | 1310572315 | Wassup 3 | 1310572312 | Yo 3 | 1310572311 | Hey 3 | 1310572309 | Eyo 1 | 1310572305 | Hello 1 | 1310572303 | Good Day Is it possible to group them by type, and selecting the latest (ordered by date) so the result would be: 1 | 1310572318 | Hello 2 | 1310572315 | Wassup 3 | 1310572312 | Yo 1 | 1310572305 | Hello I'm pretty sure I