将结果集插入另一个表中

insert into rep_agentworksum (DateTime,AgentName ,DayWorkSum , DayWork )
SELECT  DateTime,AgentName  ,Count(SessionId)as DayWorkSum ,1 as DayWork  FROM  cti_record WHERE Date ='2012-03-04' and AgentName in (1006,1013 )
group by AgentName

 

相关文章:

  • 2021-08-28
  • 2022-12-23
  • 2021-09-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-26
  • 2022-03-02
  • 2021-10-31
  • 2021-07-07
  • 2021-05-23
  • 2021-11-09
相关资源
相似解决方案