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

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 non clustered index in table

Author  Topic 

subhaoviya
Posting Yak Master

135 Posts

Posted - 2012-10-05 : 04:53:58
Hi,
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.

Thank
subha

sunitabeck
Master Smack Fu Yak Hacker

5155 Posts

Posted - 2012-10-05 : 07:03:11
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
   

- Advertisement -