The following query:
UPDATE `zydushr`.`performance` AS a1 , `zydusquiz`.`performance` AS a2
SET a1.`Sales` = a2.`AchievementHQ` WHERE a1.`EmpNo` = a2.`EmpNo`
AND a1.`Month` = a2.`Month` AND a1.`Year` = a2.`Year` ;
is running very slowly. How can I speed it up?
Note: i have already created the indexes.
a1? Did you try to rebuild you indexes? Can you upload the query plan when you run that query?