May 2019
Intermediate to advanced
484 pages
11h 23m
English
As mentioned, an RID Lookup operator represents a lookup from a non-clustered index into a heap.
The following example shows a query executed in the AdventureWorks sample database with an RID Lookup:
SELECT *FROM DatabaseLogWHERE DatabaseLogID = 5;
The query generates the following execution plan:

Notice that the results of the RID Lookup are being joined to the non-clustered index seek via a Nested Loops join operator (we will discuss join operators later in this section).
Read now
Unlock full access