表包含(PID,玩家,级别,月,季)从查询中使用结果子查询返回意外的结果
我试图创建一个显示每个球员,他们打出这几个月的查询,什么他们的排名是那个月以及那个月有多少玩家。
这里是我想什么是每月0.1我如何得到这个正确
SELECT name as Name
, month as Month
, rank as Rank
, (select count(*) from results where month='month') as TotalPlayers
FROM `results`
WHERE season=CurrentSeason
and name="Player"
我的子查询返回结果?
请提供一些示例数据和期望的输出 – 2013-04-21 18:30:27