Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is Covering Indexes?
Plz explain with example

Answers were Sorted based on User's Feedback



What is Covering Indexes? Plz explain with example..

Answer / lekhraj deshmukh

An index covers the query if all the columns specified in
the query are part of the index. These are the columns that
are all columns referenced in the query, not just columns in
a WHERE clause.

eq:-SELECT DISTINCT lower(orig_airport) FROM Flights

here orig_airport is a index column.

Is This Answer Correct ?    3 Yes 1 No

What is Covering Indexes? Plz explain with example..

Answer / 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

What is Covering Indexes? Plz explain with example..

Answer / virgilio

A covering index is when you run a Query and you use an
indexed field in you where Clause:

*--Primary Key Creates aclustered Index
Create table Students
(
Studentid int Primary Key not Null, *
StudentName Nvarchar(20) Null,
StudentLastName Nvarchar(20) Null
)

Se;ect * from Students where StudentID = 20

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More SQL Server Interview Questions

Why we should not use triggers?

0 Answers  


What's the difference between DELETE TABLE and TRUNCATE TABLE commands?

9 Answers  


how to know description of a table in sqlserver 2000

8 Answers  


How to convert numeric values to integers in ms sql server?

0 Answers  


can i write function in stored procedure and stored procedure in function and nested procedure.Give one example for each question?

1 Answers   Cap Gemini, TCS,


What stored by the master? : sql server database administration

0 Answers  


What do you mean by an execution plan? Why is it used?

0 Answers  


Is it true that rules do not apply to data already existing in a database at the time the rule is created?

0 Answers  


Define the one-to-one relationship while designing tables.

0 Answers  


What is row_number()?

0 Answers  


What is ms sql server triggers?

0 Answers  


Explain transaction server auto commit?

0 Answers  


Categories