我正在尝试为高尔夫数据库编写查询。statisticID = 1
它需要返回有ap2sStatistic > 65
和也有statisticID = 3
的玩家p2sStatistic > 295
。
一个statisticID
是行驶距离,另一个是准确性等。我尝试了以下方法,但它不起作用,似乎无法在网上找到答案。如果不进行视图,我将如何处理?
SELECT playerFirstName, playerLastName
FROM player2Statistic, player
WHERE player.playerID=player2Statistic.playerID
AND player2Statistic.statisticID=statistic.statisticID
AND p2sStatistic.3 > 295
AND p2sStatistic.1 > 65;
http://i.imgur.com/o8epk.png - db 的图片
试图得到它只是输出满足这两个条件的玩家列表。