Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我无法正确回答以下问题
显示三个物理学奖的年份。
我编写了以下脚本,但它返回错误。
SELECT yr, COUNT(subject) FROM nobel WHERE subject = 'Physics' GROUP BY yr HAVING COUNT(subject) = 3
感谢您的时间
该查询看起来是正确的,但如果没有指向 SqlZoo 页面的链接,我无法确定。
尝试
SELECT yr FROM nobel WHERE subject = 'Physics' GROUP BY yr HAVING COUNT(subject) = 3
- 您返回的结果的确切格式可能很挑剔。它只要求一年。