30.06.2013 Views

SQL Server Execution Plans - Red Gate Software

SQL Server Execution Plans - Red Gate Software

SQL Server Execution Plans - Red Gate Software

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Figure 7.10<br />

Chapter 7: Special Datatypes and <strong>Execution</strong> <strong>Plans</strong><br />

Starting at the beginning of physical operations, top and right, we see a normal execution<br />

plan. A Clustered Index Scan operation against the JobCandidate table followed by<br />

a Filter operation that ensures that the Resume field is not null. A Nested Loops join<br />

combines this data from the filtered JobCandidate table with data returned from the<br />

Employee table, filtering us down to two rows.<br />

Then, another Nested Loops operator is used to combine data from a new operator, a<br />

Table Valued Function. This Table Valued Function, subtitled "XML Reader with XPath<br />

filter" operator represents as relational data the output from the XQuery. The role it<br />

plays is not dissimilar to that of the Remote Scan operation from the OPENXML query.<br />

However, the Table Valued Function, unlike the Remote Scan in the example, is actually<br />

a part of the query engine and is represented by a distinct icon.<br />

The ToolTip for the Table Valued Function shows that four rows were found.<br />

273

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!