PFB我的查詢計劃我在SQL Server中的查詢,需要很多時間來執行
我需要讓所有的團隊成員基於細節上我的查詢輸出所有分配/主動輪
我想優化我的查詢。 PFB我的查詢。
SELECT Ass.strassociatename,
Ass.strphotolink,
team.strteamname,
team.strteamlogo,
edu.streducationalinstitute,
rounds.strroundname
FROM ccs_vas_tbl_associates Ass,
ccs_vas_tbl_teams team,
ccs_vas_tbl_educationalinstitutes edu,
ccs_vas_tbl_rounds rounds,
ccs_vas_tbl_roundassignment roundass
WHERE team.iteamid = 64
AND ass.iteamid = team.iteamid
AND team.ieducationalinstituteid = edu.iinstituteid
AND Ass.icompetitionid = rounds.icompetitionid
AND roundass.strroundstatus = 'Assigned'
AND roundass.iroundid = rounds.iroundid
AND roundass.iteamid = team.iteamid
你能後的查詢計劃嗎? – thebjorn 2014-08-28 05:56:22
每個表中有多少條記錄並且索引被添加? – 2014-08-28 06:00:43
檢查缺席表上是否存在主鍵。查詢本身似乎很好。 – 2014-08-28 06:00:54