【发布时间】:2023-03-27 14:37:01
【问题描述】:
我正在编写查询,但遇到了问题。
select name, address, count(BL.card_no)
from Book_Loans BL
inner join Borrower B on BL.card_no = B.card_no
where count(BL.card_no) > 1 group by name;
这不起作用,因为我不能使用“where count(BL.card_no) > 1”,因为它显示“无效使用组函数”。但是我需要确保只显示大于 1 的卡号计数,我还能怎么做?
【问题讨论】:
标签: mysql where-clause