What is Covering Indexes?
Plz explain with example

Answer Posted / binyam

A covering index is a non clustered index built upon all the
columns required to satisfy a SQL query without going to the
base table. If a query encounters an index and does not need
to refer to the underlying data table at all, then the index
can be considered a covering index.
To understand a covering index it is very important first
understand non clustered index. a non clustered index does
not affect the order of the data in the table pages,because
the leaf pages of a non clustered index and the data pages
of the table are separate .A pointer is required to navigate
from an index row to the data row. so when a query requests
columns that are not part of the non clustered index chosen
by the optimizer , a lookup is required .The lookup fetches
the corresponding data row from the table by the following
row locator value from the index row, requiring a logical
read on the data page besides the logical read on the index
page. However, if all the columns required by the query are
available in the index itself , them access to the data page
not required then this known as a covering index.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is an index? : Sql server database administration

680


How many categories of data types used by sql server?

765


How to use column default values in insert statements in ms sql server?

718


What is the process of normalising?

754


List the different types of collation sensitivities in sql server?

729






What are Row versions of DataRow?

784


Explain how many normalization forms?

752


You want to implement the one-to-many relationship while designing tables. How would you do it?

709


What are entities and relationships?

739


What is use of except clause? How it differs from not in clause?

757


how you can deploy an ssrs report?

139


What is self contained scalar sub query?

704


What is filestream?

741


How to create percentile function?

124


What is the size of transaction log file?

657