如何过滤下面查询中的计数列以仅显示计数 > 1 的行?
select FirstName, COUNT(*) as [CountTickets] from tblParkingTickets
group by FirstName
order by [CountTickets] desc
这不起作用:
select FirstName, COUNT(*) as [CountTickets] from tblParkingTickets
where [CountTickets] > 1
group by FirstName
order by [CountTickets] desc
谢谢