用于报表统计,能否优化?如何优化,请达人指教select sale_id, relation.salename ,count(*) as count from ms_workbench_public_workbench_drugfirm_cust_map as custmap left join ms_workbench_public_workbench_custrelation as relation on custmap.cust_id = relation.custid where sale_id in ('261','49','187','260','270','269','50','54','55','148','257','256') and cust_id in (select cust_id from ms_workbench_public_workbench_drugfirm_connect group by cust_id) and relation.salename != '' group by sale_ids