यह पुनर्लेखन योजना के लिए स्टार्टअप के साथ फ़िल्टर जोड़ता है और अन्य तालिकाओं तक पहुँचने से बचता है।
SELECT *
FROM TA
OUTER APPLY (SELECT *
FROM dbo.V
WHERE TA.c = v.c
AND ta.id = v.id) CA
WHERE TA.c = 2
STATISTICS IO
इसके परिणाम हैं
Table 'Worktable'. Scan count 0, logical reads 0, physical reads 0
Table 'T2'. Scan count 0, logical reads 2, physical reads 0
Table 'TA'. Scan count 0, logical reads 2, physical reads 0
के मूल परिणामों की तुलना में
Table 'T6'. Scan count 0, logical reads 2, physical reads 0
Table 'T5'. Scan count 0, logical reads 2, physical reads 0
Table 'T4'. Scan count 0, logical reads 2, physical reads 0
Table 'T3'. Scan count 0, logical reads 2, physical reads 0
Table 'T2'. Scan count 0, logical reads 2, physical reads 0
Table 'T1'. Scan count 0, logical reads 2, physical reads 0
Table 'TA'. Scan count 0, logical reads 2, physical reads 0