Hello
Thanks for the advice I used min (TC1) and min (TC4)
still shows wrong.
Sending code please check what I'm doing wrong.
Thanks
code:
SELECT Datum,Kára,min,tc2,avatar,username,@curRank := @curRank + 1 AS Rank
FROM
(SELECT min(a.tc1) AS Datum, min(a.tc4) AS Kára, min(a.tc5) AS min, a.tc2, b.avatar, c.username, @curRank := @curRank + 0 AS Rank
FROM
sbhgl_chronoengine_chronoforms_datatable_treningove_casy a INNER JOIN
sbhgl_jsn_users b ON a.user_id=b.id INNER JOIN
sbhgl_users c ON a.user_id=c.id, (SELECT @curRank := 0) r
WHERE a.tc2 LIKE 'Motokáry Modrice'
GROUP BY a.user_id
ORDER BY min ASC) T
|