Select Count(*)
From np_goldidea_vote c, dept_with_path b, np_goldidea_main a
Where c.vote_org_id = b.dept_id
And a.main_id = c.main_id
And a.column_id = '2'
And a.status = 9
Group By b.path 请大家分析下 如何优化这条SQL 目前查询需要12秒 ,其中C表数据量80W条,b表1440条,a表3891条,请高手帮忙下,谢谢,目前这几张表的关联也都建立了。急