【发布时间】:2021-03-30 00:04:24
【问题描述】:
看这个:
鉴于具有以下列的“客户”表:
• Name1 First name of the customer.
• Name2 Second Name of the customer.
• Surname1 Customer's First Surname.
• Surname2 Second Surname of the client.
• T_Documento Type of customer document
• N_Document Customer document number
• Country_Residence Country where the Client Resides
有待解决:写一张支票,列出少于 10 个客户的居住国家/地区。
我一直在寻找正确的代码,但我仍然没有找到任何解决方案
SELECT * (
SELECT pais_residencia, COUNT(*) AS ClientesTotales
FROM Clientes
GROUP BY pais_residencia
) FROM Clientes
WHERE ClientesTotales > 10
这是错误的顺便说一句...
任何想法
【问题讨论】:
标签: mysql sql count subquery having-clause