Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 605539
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T17:09:25+00:00 2026-05-13T17:09:25+00:00

How are clustered indexes stored on a hard disk? What is the logical order?

  • 0

How are clustered indexes stored on a hard disk? What is the logical order?

How do non-clustered indexes work?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T17:09:25+00:00Added an answer on May 13, 2026 at 5:09 pm

    This means that the data in the table are stored in a B-Tree according to the order of the CLUSTERED PRIMARY KEY (or the clustering columns).

    This name is in my opinion a little bit confusing. The same concept in Oracle is called index-organized table which I find much more descriptive.

    Non-clustered indexes contain the value of the indexed columns along with the pointer to the record they are originated from.

    The "clustered index" is the table itself; the "non-clustered" index is an ordered copy of some of the table’s columns.

    If you "create" a clustered index, the table is rearranged. That’s why you cannot have more than one "clustered index" on a table: the table cannot be arranged in more than one order.

    If you create a secondary index, the shadow copy of the table is created, holding the values of the indexed columns and the pointers to the records they are from. Whenever the table changes, the copy is changed too (the engine takes care of that automatically).

    Non-clustered table

    id   col1   value
    --   --     --
    1    1      Data 1
    6    1      Data 6
    3    1      Data 3
    7    2      Data 7
    9    2      Data 9
    5    2      Data 5
    

    The table is not ordered.

    Clustered table

    id   col1   value
    --   --     --
    1    1      Data 1
    3    1      Data 3
    5    2      Data 5
    6    1      Data 6
    7    2      Data 7
    9    2      Data 9
    

    The table is ordered on id.

    Clustered table with a secondary index

    Table                      Index
    id   col1   value          col1   id
    --   --     --             --     --
    1    1      Data 1         1      1
    3    1      Data 3         1      3
    5    2      Data 5         1      6
    6    1      Data 6         2      5
    7    2      Data 7         2      7
    9    2      Data 9         2      9
    

    The table is orderer on id, the index is ordered on (col1, id)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Do the clustered and non-clustered indexes both work on B-Tree? I read that clustered
I select a number of non-clustered indexes from my database with the following: SELECT
Is there a nice script, that generates script to move clustered and non-clustered indexes
I have a database table called tbl_event with the non-clustered indexes IDX_Event_Folder and IDX_Event_Time
What are the things that you would consider when defining indexes, clustered and non-clustered,
When partitioning a table, do the indexes (both non-clustered and clustered) get partitioned automatically
I have a table with two indexes – PK clustered index and non-clustered index.
I want to develop a multi-server clustered framework that will work similarly to the
How do I alter a primary clustered index to become a non-clustured index. (Being
How does Sql Server handle fill factor on tables with clustered indexes on composite

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.