我很想知道,以下询问为什么回到我的桌边的空位,而不是零点? 因为在司机的桌子里,谁也不能返回零? 非常感谢任何帮助。
Thanks
SELECT
SUM(IF(qual_pos = 1 , 1,0)) AS poles,
SUM(IF(race_pos <= 3 , 1,0)) AS podiums,
SUM(IF(race_pos = 1 , 1,0)) AS victories,
SUM(overtakes) AS overtakes
FROM driver_stats s
left join drivers d on d.drivers_id = s.drivers_id
WHERE d.team_id = $row[team_id]