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 1077427
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T21:34:25+00:00 2026-05-16T21:34:25+00:00

When a table has a clustered index in SQL Server does that mean that

  • 0

When a table has a clustered index in SQL Server does that mean that all indexed queries will go via the clustered index?

For example if I have a table with a single non-clustered index (indexing one column) and search for a row via that column it will do Index Seek -> RID -> Data row lookup -> Result

But if I add a clustered index on a different column then the same query will do the following Index Seek -> Extract clustering key -> Clustered index seek -> Results

This implies to me that the non-clustered index no longer ‘terminates’ with a RID at the leaf but with a clustering key of the clustered index? Is that right?

  • 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-16T21:34:26+00:00Added an answer on May 16, 2026 at 9:34 pm

    Yes, you got it pretty much figured out.

    When you have a clustered index, then any non-clustered index will also include the column(s) from the clustered index as their “lookup” into the actual data.

    If you search for a value in a non-clustered index, and you need to access the remaining columns of the underlying data, then SQL Server does a “bookmark lookup” (or “key lookup”) from that non-clustered index into the clustered index (which contains the data itself, in the leaf-level nodes). With a clustered index, you don’t need the RID’s anymore – and thus you don’t have to update all your index pages if a RID changes (when data gets moved from one page to another).

    Bookmark lookups are rather expensive operations, so you can add additional columns to your non-clustered indices via the INCLUDE statement. With this, your non-clustered index will contain those additional columns on its leaf-level pages, and if you only need columns that are contained in that set of data, your query can be satisfied from the non-clustered index itself (in that case, it’s called a “covering index”) and you can save yourself a series of bookmark lookups.

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

Sidebar

Related Questions

In terms of SQL terminology, does HEAP stands for a table that has Non-Clustered
I am using SQL Server 2008. I know if a table has no clustered
My SQL table has 2 fields that impact my problem: Priority as real, and
I am struggling understanding what a clustered index in SQL Server 2005 is. I
The following queries run in an sproc targeting the ItemData table in SQL Server
I need to index a varchar field on my table in MS SQL Server
I have a simple database table (SQL Server 2008 R2 Express), which has a
SQL Azure not only requires each table to have a clustered index, but also
Using SQL Server 2000. I have a table that receives a dump from a
My DB table has a column that can contain a very big amount of

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.