一条相关子查询的SQL优化

原sql以下:sql select distinct gc.program, gc.agent_id, gc.freq, gc.programid, a.agentName, (select count(id) from ge_t where alert_type='add' and agent_id = gc.agent_id and freq = gc.freq and
相关文章
相关标签/搜索