Microsoft Access SQL hw问题

时间:2017-11-06 06:47:03

标签: sql ms-access

以最快速度查找PC型号。输出一个由五列组成的表:(模型,制造商,速度,内存,价格)。

我想出了什么并且只收到错误:

SELECT model,maker,speed,ram,price 
FROM (
SELECT MAX(PC.speed) AS speed , Product.maker
FROM Product INNER JOIN Pc ON Product.model = pc.model
GROUP BY Product.maker

1 个答案:

答案 0 :(得分:0)

您缺少结束括号)

SELECT model,maker,speed,ram,price 
FROM (
    SELECT MAX(PC.speed) AS speed , Product.maker
    FROM Product INNER JOIN Pc ON Product.model = pc.model
    GROUP BY Product.maker
)