MYSQL problem
#4

SuperViper's solution did not work as i hoped for.

Select's 10 last players, excluding relogs. But shows Time as NULL.
pawn Код:
SELECT DISTINCT `PlayerName` FROM `lol_Players` ORDER BY `Time` DESC LIMIT 10
Shows Time correctly, but does not exclude 'relogs'.
pawn Код:
SELECT DISTINCT `PlayerName`, `Time` FROM `lol_Players` ORDER BY `Time` DESC LIMIT 10
pawn Код:
[22:26] <SA-TDM[1]> ________ Last 10 Logins ________
[22:26] <SA-TDM[0]> givi.koguashvili logged in 11/06/2013 8:35
[22:26] <SA-TDM[0]> Uros_Andjelkovic logged in 11/06/2013 8:29
[22:26] <SA-TDM[0]> mohamed logged in 11/06/2013 8:27
[22:26] <SA-TDM[0]> BOSS2013 logged in 11/06/2013 8:17
[22:26] <SA-TDM[1]> givi.koguashvili logged in 11/06/2013 8:41 // 3 relogs, i want to exclude it and only show last one.
[22:26] <SA-TDM[1]> givi.koguashvili logged in 11/06/2013 8:32
[22:26] <SA-TDM[1]> givi.koguashvili logged in 11/06/2013 8:28
[22:26] <SA-TDM[1]> Uros_Andjelkovic logged in 11/06/2013 8:27
[22:26] <SA-TDM[1]> Jonh_Henson logged in 11/06/2013 8:12
Reply


Messages In This Thread
MYSQL problem - by Richie© - 10.06.2013, 20:08
Re: MYSQL problem - by SuperViper - 10.06.2013, 20:26
Re: MYSQL problem - by Richie© - 10.06.2013, 20:42
Re: MYSQL problem - by Richie© - 11.06.2013, 20:24
Re: MYSQL problem - by Richie© - 12.06.2013, 12:43
Re: MYSQL problem - by Vince - 12.06.2013, 13:17
Re: MYSQL problem - by Richie© - 12.06.2013, 14:47

Forum Jump:


Users browsing this thread: 1 Guest(s)