Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 non clustered index in table
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Posting Yak Master

135 Posts

Posted - 10/05/2012 :  04:53:58  Show Profile  Reply with Quote
i am having table Table1 with 3 columns, c1,c2 and c3. Table1 having duplicate entrys of all those columns init. i am doing selection from this table which holds million of records. How to fast up the query?
is it make sense to create non-clustered index in it? because the table already having duplicate rows and colums.


Flowing Fount of Yak Knowledge

5155 Posts

Posted - 10/05/2012 :  07:03:11  Show Profile  Reply with Quote
Creating an index would help even if there are some duplicates. How much it would help depends on the so-called selectivity. For example, if a column had the same value in all rows, an index on that column is not going to help.

Does the table have a primary key and is that column(s) involved in the query?

If you can post the query along with the schema of the table, people on the forum would be able to offer more concrete suggestions.
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000