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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T14:50:20+00:00 2026-06-10T14:50:20+00:00

I came across this post in Stackoverflow. The first answer mentions something like A

  • 0

I came across this post in Stackoverflow. The first answer mentions something like A clustered index has all the data for the table while a non clustered index only has the column + the location of the clustered index or the row if it is on a heap (a table without a clustered index). How can a non-clustered index have the location of the clustered index? It only contains the column values sorted as nodes in a B-treee with each node pinting to the row where the column has that node-value, 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-06-10T14:50:21+00:00Added an answer on June 10, 2026 at 2:50 pm

    Assuming you’re talking about SQL Server and also assuming that you have a clustered index on your table (as you should).

    Then the nonclustered index has the columns that you define in your CREATE INDEX statement, plus it has the column(s) that make up your clustered index (if present).

    That clustering key value is the “pointer” to where the actual data is located.

    If the query executor seeks through your nonclustered index for a value and find a match, then

    • either that value is all you care about – then you just get back that value

    • or the nonclustered index might also have some included columns (in the leaf level page) and with those, the query can be satisfied (all columns requested are present) so you get back the values you asked for

    • or then the values you want are not all in the nonclustered index leaf-level page (that’s especially true if you do SELECT * all the time) and then the query executor has to take the clustering key value from the nonclustered index, and go back to the clustering index, do what’s called a key lookup, seek through the clustering index, and find the associated data page where the complete row is stored -> and now the query executor can return the values you’ve asked for

    For a pretty good explanation – see this blog post here. It says:

    In NonClustered Index:
    ….
    2.b. If the table has a Clustered index, or the index is on an Indexed view, the row locator is the Clustered index Key for the row. SQL
    Server retrieves the data row by searching the Clustered index using
    the Clustered index Key stored in the Leaf row of the NonClustered
    index.

    Or see this blog post in a whole series on SQL Server indexes which explains the “bookmarks” stored in a nonclustered index leaf-level page, too.

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

Sidebar

Related Questions

i came across this post where Reader Comment #16 mentions: The ringtone syncing functionality
I came across this post and found belisarius' answer interesting. Wondering whether he someone
So I came across this post about accessing CRM data from an external application.
I was researching something and came across this blog post at buildstarted.com about model
http://jsfiddle.net/fzTak/7/ i came across one post telling this on stackoverflow but it is not
I came across this post pass array to method Java on how to pass
Flash-style Tween/Easing Functions in C# I came across this post on the internet today.
While browsing I came across this blog post about using the Wikipedia API from
While stumbling through the chromium code documentation, I came across this post: http://code.google.com/p/chromium/wiki/UsingGit#Windows If
This is the first time I've came across this. Just printed a list and

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.