【发布时间】:2020-02-25 20:54:16
【问题描述】:
我的属性表有 propertyNo、street、city、postcode、type、rooms、rent、OwnerNo、staffNo 和 branchNo 列 虽然我的 Client 表有 clientNo、fname、lame、tellNo、prefType 和 maxrent 列
SELECT client.ClientNo, propertyforrent.PropertyNo,client.prefType, fname
FROM client INNER JOIN
propertyforrent
ON propertyforrent.type = client.prefType
我试过了,但它没有返回与客户端 prefType 匹配的所有属性的总和
【问题讨论】:
-
提示:
COUNT(*).