- Oct 30, 2003
- 107
- 1
- 45
SQL statments:
To show all players in top 10 including GMs:
as shown in the image under (A)
To show all players in top 10 without GMs:
as shown in the image under (B)
Note: Player1 is gm.
To show all players in top 10 including GMs:
Code:
SELECT TOP 10 c.Fld_CharName,c.Fld_Level,c.Fld_Exp
FROM Tbl_CharInfo c
ORDER BY c.Fld_Level DESC,c.Fld_Exp DESC
as shown in the image under (A)
To show all players in top 10 without GMs:
Code:
SELECT TOP 10 c.Fld_CharName,c.Fld_Level,c.Fld_Exp,a.FLD_PLAYERNAME
FROM Tbl_CharInfo c
LEFT JOIN TBL_ADMIN a ON (a.FLD_PLAYERNAME = c.Fld_CharName)
WHERE a.FLD_PLAYERNAME is null
ORDER BY c.Fld_Level DESC,c.Fld_Exp DESC
as shown in the image under (B)
Note: Player1 is gm.
