1 2 3 4 5 6 7 8 9 10 11 12
| SELECT
Tournament.TournamentID AS ID,
TournamentType.Name AS Type ,
Tournament.EventDate AS EventDate ,
( SELECT COUNT(*) FROM " . BDD::DB_Stats . " WHERE TournamentID = Stats.TournamentID GROUP BY TournamentID ) AS PlayersTotal,
Stats.PlayerPosition AS Position,
Stats.PlayerPoint AS Points,
FROM ( SELECT * FROM " . BDD::DB_Stats . " WHERE PlayerMemberNumber = 'CAQC102554' ) AS Stats
INNER JOIN " . BDD::DB_Tournament . " AS Tournament ON Tournament.ID = Stats.TournamentID
INNER JOIN " . BDD::DB_TournamentType . " AS TournamentType ON Tournament.Type = TournamentType.ID |
Partager