group异常

group错误insert into #temp_fristcall(id) select @idMIN(id) from t_cdr_callout where group by workn

group错误
insert into #temp_fristcall(id) select @id=MIN(id) from t_cdr_callout where group by worknumber having datepart(hh,handletime)>9
弱弱的问一下group关键字错误,要怎么修改

[解决办法]
where 去掉