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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T21:46:03+00:00 2026-06-11T21:46:03+00:00

I have following table schema – CREATE TABLE [dbo].[TEST_TABLE] ( [TEST_TABLE_ID] [int] IDENTITY(1,1) NOT

  • 0

I have following table schema –

CREATE TABLE [dbo].[TEST_TABLE]
(
    [TEST_TABLE_ID] [int] IDENTITY(1,1) NOT NULL,
    [NAME] [varchar](40) NULL,
    CONSTRAINT [PK_TEST_TABLE] PRIMARY KEY CLUSTERED 
    (
        [TEST_TABLE_ID] ASC
    )
)

I have inserted huge data in TEST_TABLE.

As I have marked TEST_TABLE_ID column as primary key, clustered index will be created on TEST_TABLE_ID.

When I am running following query, execution plan is showing Clustered Index Scan which is expected.

SELECT * FROM TEST_TABLE WHERE TEST_TABLE_ID = 34

But, when I am running following query I was expecting Table Scan as NAME column does not have any index:

SELECT * FROM TEST_TABLE WHERE NAME LIKE 'a%'

But in execution plan it is showing Clustered Index Scan.

As NAME column does not have any index why it is accessing the clustered index?

I believe, this is happening as clustered index resides on data pages.

Can anyone tell me if my assumption is correct? Or is there any other reason?

  • 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-11T21:46:04+00:00Added an answer on June 11, 2026 at 9:46 pm

    A clustered index is the index that stores all the table data. So a table scan is the same as a clustered index scan.

    In a table without a clustered index (a “heap”), a table scan requires crawling through all data pages. That is what the query optimizer calls a “table scan”.

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

Sidebar

Related Questions

I have the following table schema: CREATE TABLE [Foo]( [id] [int] NOT NULL, [name]
I have a table with the following schema CREATE TABLE [dbo].[personas]( [id_persona] [int] IDENTITY(1,1)
Please consider following schema CREATE table articles ( id Int UNSIGNED NOT NULL AUTO_INCREMENT,
Assuming I have the following schema table A: ID int primary key value varchar(255)
I have the following schema, which I've simplified slightly: CREATE TABLE [dbo].[Header] ( [HeaderId]
I have got the following simplified schema: CREATE TABLE [file] ( id UNIQUEIDENTIFIER NOT
I have the following table schema; CREATE TABLE `db1`.`sms_queue` ( `Id` INTEGER UNSIGNED NOT
I have the following pseudo-SQL schema: table flight id int primary key date timestamp
I have a table schema similar to the following (simplified): CREATE TABLE Transactions (
I have the following table in my iSeries DB2 schema: CREATE TABLE LATHAM1.SGINES1.LICVP010 (ID

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.