ok...
nel tuo esempio che hai fatto nell'introdurre il problema hai detto che i recordo possono avere lo stesso ID
es.
id 2 gatto 19/12/2008
id 2 gatto 05/08/2009
e adesso invece hai affermato che l'ID é univoco.
La soluzione al tuo quesito dovrebbe stare li, cioé dovresti fare la query con un GROUP BY id

Rispondi quotando