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...

Can we create non-clustured index on a clustered index ?

Answer Posted / andrew g avelin

Clustered indexes sort and store the data rows in the table
based on their key values. There can only be one clustered
index per table, because the data rows themselves can only
be sorted in one order. For more information about
clustered index architecture

A nonclustered index contains the index key values and row
locators that point to the storage location of the table
data

---------------

when you create a clustered index It sorts data physically
which is not same with non-clustured index, this is the
reason why there can be only one clustered index per table
and multiple non-clustered index.

---------------
Both indexes work as B-Tree structure .
But clustered index store actual data in leaf level node
and non - clustered index stored row pointer

-----------------

For a clustered index, the database will sort the table's
records according to the column (or columns) specified by
the index. A clustered index contains all of the data for a
table in the index, sorted by the index key, just like a
phone book is sorted by name and contains all of the
information for the person inline. The nonclustered indexes
contain only the index key and a reference to find the
data, which is more like a book index. A book index stores
words in order with a reference to the page numbers where
the word is located. You can only create one clustered
index on each table.

---------------------

Clustered indexes are created usally when we create Primary
key.Atmost we can have only one clustered index
Non clustered indexes are created on the table columns
We can have maximum of 241

Is This Answer Correct ?    12 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a column in a table?

1060


What is sql not null constraint?

980


Explain the the delete statements in sql?

976


How many joins can you have in sql?

880


What is implicit cursor in pl sql?

1023


Explain sql data types?

1032


Which one is better sql or oracle?

898


What is pl sql code?

991


What are tuples in sql?

1059


what is bdb (berkeleydb)? : Sql dba

971


describe transaction-safe table types in mysql : sql dba

943


What does the argument [or replace] do?

1014


Which one is better subquery or joins?

1007


how mysql optimizes distinct? : Sql dba

999


What are reports usually used for?

966