Introduction
This article is about the different types of operations of an execution plan. We will not talk about which operation should be used or not as this article is only about the definition of the operations. If you are a beginner with an execution plan then please go through my first article (link below) about SQL execution plan.
Now when we know types of execution plans and how we can get statistics of execution plans, it is really important that we should understood the meaning of every single output of execution plan and statistics so that we can make our queries better and increase the performance. So let’s understand the execution plan’s operations,
Following are the most common operations of SQL execution plan.

Understand the difference between Scan and Seek Operation.
|
Seek Operation
|
Scan Operation
|
|
1. Seek fetches selective rows from the table.
2. Seek touches only the required or matching row.
3. Less CPU consumption.
4. Requires less I/O component usage.
5. Executes with where clause
|
1. Scan fetches all the rows from the table
2. Scan touches every single row of the table either required or not.
3. More CPU consumption.
4. Requires more I/O component usage.
5. Executes with Select statement
|
INDEX AND TABLE ACCESS
|
TABLE SCAN
|
Table Scan operation only performs when table doesn't have any index on it and we need to get all the data from the table (without any filter). You can validate this by doing the following steps,
![]() |
|
INDEX SCAN
|
Index Scan operation only performs when table has a column with non-clustered index and we need to get all rows of that column. You can validate this by doing following steps,
![]() |
|
CLUSTERED INDEX SCAN
|
Clustered Index Scan operation performs when a query is written to read table data based on clustered index. Let’s check this by doing the following steps,
![]() |
|
INDEX SEEK
|
Index Seek operator performs when a query is written to filter records based on column with non-clustered index, which doesn't have to read all tables and then filter. The system directly goes to index and finds required records based on filter value. Let’s do an exercise,
|
|
CLUSTERED INDEX SEEK
|
A Clustered Index Seek operation performs when the requirement is to get filtered data. If a table has a primary key (clustered index) and we write a query to filter some records with the help of clustered index then clustered index seek operation will perform. Let’s check this,
![]() |
|
Key Lookup (Clustered)
|
This operation performs when we use a non-clustered indexed column to filter data, but additionally other column data is needed to satisfy the requirement. Note that non-clustered index column should be unique. In this operation, system first filters records based on non-clustered indexed column then based on these record’s primary key/clustered index fetches other related details using key lookup operation. It is really bad when key lookup percentage is greater than 50%. Let’s understand this from an example,
![]() If I explain this execution plan, then in this query the first query will search a primary key on a non-clustered index basis and then search the other column data on a clustered index basis.
|
|
RID Lookup (Heap)
|
RID stands for row identifier. This operation performs when we use a non-clustered indexed column to filter data. Note that non-clustered index column should be unique as well for a key lookup operation. In this operation, system filters records based on non-clustered indexed column. It is really bad when key lookup percentage is greater than 50%. Let’s understand this from an example,
![]() |














Join the conversation! Your thoughts help the community grow.