To be contd... Non-clustered Index(Secondary Indexes): 1. Indexes other than PRIMARY indexes (clustered indexes) called a non-clustered index. 2. It allows accessing secondary data that has pointers to the physical rows. 3. The index is stored in another place and the index have pointers to the storage location of the data. 4. A table can contain one or more than one non-clustered index. 5. Let's Say, you want to retrieve employees by their sales (which is a regular report), then you can use a non clustered index on Sales to retrieve the records quickly. Advantages: 1. Help in retrieving the data quickly 2. Small size in comparison to a clustered index. 3. Can work with unique constraints Disadvantages: 1. Slower accessing power in comparison to the clustered index. 2. Every time the clustering key is updated, a corresponding update is required on the non-clustered index as it stores the clustering key. 3. Requires an additional space to store the index separately. Example: Book,where the content is written in one place, and the index is at a different place Syntax: CREATE INDEX index_name ON table_name(column_name); - Study24x7
Social learning Network
58 followers study24x7 12 May 2020 07:35 PM study24x7 study24x7

To be contd... Non-clustered Index(Secondary Indexes): 1. Indexes other than PRIMARY indexes (clustered indexes) called a non-clustered index. 2. It allows accessing secondary data that has pointers to the physical rows. 3. The index is stored in another place and the index have...

See more

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles