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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T05:06:26+00:00 2026-05-12T05:06:26+00:00

In a SQL Server 2005 database, I have lots of tables like this Products

  • 0

In a SQL Server 2005 database, I have lots of tables like this Products table

ProductID (PK)
ProductCategoryID (IX)
Description
Price
ExpiryDate
BreakableYN

…where there is a primary key, a foreign key and then a bunch of other fields. Another characteristic of this type of table is that lots of queries only use the 2 ID fields (ProductID, ProductCategoryID), e.g. Employees JOIN EmployeeProductJoin JOIN Products JOIN ProductCategories JOIN ProductDepartments.

If ProductID and ProductCategoryID are already indexed, is it worth adding another index for ProductID, ProductCategoryID?

I know it seems that I’m asking if adding a covering index will help, but what I’m really asking is whether a covering index will help if the fields in that covering index are already indexed individually.

These are definition tables that are not huge, so I’m not worried about adding extra time to INSERTs etc.

  • 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-12T05:06:26+00:00Added an answer on May 12, 2026 at 5:06 am

    Is the primary key clustered? If it is, then adding a new index will accomplish nothing, because the ProductCategoryID index will already contain the ProductID values, so it effectively “covers” both columns.

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

Sidebar

Related Questions

I have lots of article store in MS SQL server 2005 database in a
SQL Server 2005 Database. I have a temporary table with many records, these records
I have a SQL Server 2005 database with two tables: Order, LineItem. Each LineItem
I have a SQL Server 2005 database. I am logging data to a table.
I have a SQL Server 2005 database in which I have some tables contain
I have a SQL Server 2005 database and I have 4 GB of text
We have a Microsoft SQL Server 2005 database that needs to be converted back
We have a production SQL Server 2005 database server with the production version of
I have a SQL Server 2005 database that is suffering from lock starvation because
We have a SQL Server 2005 database, and currently all our users are connecting

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.