这是我的第一个可以正常工作的查询。
SELECT count(event_log_id) as icount, cast(youth_name as varchar(max)) as yname
FROM CIRComplete
WHERE actual_date between '2012-01-01' and '2012-04-30'
AND is_deleted = '0' AND Closed = '1'
GROUP BY cast(youth_name as varchar(max))
这将给我两列,icount 和 yname
我想执行第二个查询,它将给我 yname 和 icount 其中 icount > 1
我已经在这几个小时了,终于决定寻求帮助。