What is Index ? Explain its Types?

Answer Posted / sajjan singh

Indexes are data structures that help SQL Server to find
particular rows of data fastly.

In a database, an index allows the database program to find
data in a table without scanning the entire table.
An index in a database is a list of values in a table with
the storage locations of rows in the table that contain each
value.
Indexes can be created on either a single column or a
combination of columns in a table and are implemented in the
form of B-trees.

Clustered Index: "A clustered index is a special type of
index that reorders the way records in the table are
physically stored.
Therefore table can have only one clustered index. The leaf
nodes of a clustered index contain the data pages."

Non Clustered Index: "A nonclustered index is a special type
of index in which the logical order of the index does not
match the physical stored order of the rows on disk.
The leaf nodes of a nonclustered index does not consist of
the data pages. Instead, the leaf nodes contain index rows."

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between a function and a stored procedure?

562


How to read data in a table with "select" statements?

553


What is thr feature of change data capture?

501


What is postgresql server?

510


What are the built in functions in sql server?

486






What do you mean by an execution plan?

561


How can we rewrite sub-queries into simple select statements or with joins?

525


How to handle error or exception in sql?

527


Is null vs coalesce?

504


What samples and sample databases are provided by microsoft?

566


What are the different type of replication in sql server?

536


When setting replication, is it possible to have a publisher as 64 bit sql server and distributor or subscribers as a 32 bit sql server?

495


What is the New in SQL server 2008?

575


How to convert a table data in XML format in sql server?

2116


Can you import Microsoft Excel data to SSRS?

89