PHP-Code:
SELECT
e_dummy.USER,e_dummy.ROUND,e_dummy.DATE
FROM
`A` as e
INNER JOIN `A` as e_dummy
ON
e.USER=e_dummy.USER
AND
e.DATE<e_dummy.DATE
GROUP BY e.USER
usera I 4 I 2004-04-11
userb I 4 I 2004-04-01
PHP-Code:
SELECT
e_dummy.USER,e_dummy.ROUND,e_dummy.DATE
FROM
`A` as e
INNER JOIN `A` as e_dummy
ON
e.USER=e_dummy.USER
AND
e.DATE>e_dummy.DATE
GROUP BY e.USER
usera I 3 I 2004-04-01
userb I 6 I 2004-03-01
also beides keine werte die ich haben will. erstes ist schon nah dran, nur zeigt er mir den 2 wert von usera und bei userb ebenfalls.
Kommentar