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

How many full-text indexes can a table have?

547


What is the usage of sign function?

590


How can I create a new template for import ? : sql server management studio

595


What are the basic functions for master, msdb, model, tempdb and resource databases?

548


What is database architecture? : SQL Server Architecture

550






How to change the system date and time from SQL Plus Terminal ?

678


Name and describe few console utilities for ssrs?

249


Define left outer join?

579


What are the rules to use the rowguidcol property to define a globally unique identifier column?

589


What is the federation in sql azure?

79


Does sql server 2000 clustering support load balancing?

564


What happens when converting big values to integers?

568


What are cursors stored procedures and triggers?

513


Explain temporary table vs table variable by using cursor alternative?

517


What are the types of normalization?

547