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
Which is better statement or preparedstatement?
What is Lock table in SQL?
Do you know how to store and query spatial data?
Why de-normalization required?
What is a subquery in a select query statement in ms sql server?
What are the different type of replication in sql server?
as a general practice, it is recommended to have dbo be the owner of all database objects however, in your database you find number of tables owned by a user other than dbo, how could you fix this? : Sql server administration
What is temporal data type?
Difference between aggregate functions of sql?
What is tablesample?
What is BCNF? How is it better than 2NF & 3NF?
Which are the two editions in which SQL Azure database available?
How many databases can we create in a single server?
Which joins are sql server default?
What is scalar user-defined function?