SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

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

subhaoviya
Posting Yak Master

India
135 Posts

Posted - 10/05/2012 :  04:53:58  Show Profile  Reply with Quote
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
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  
 New 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.03 seconds. Powered By: Snitz Forums 2000