Rousseau10
Programmer
OK so I import 2 tables, 1 with 500,000 rows and one with 300,000 rows using dts and creating the tables for them in sql server.
Now I need to query these 2 tables and join them in the query and use a where clause to filter records I want.
But first I think I should makes some indexes which is where I need help.
I need to query the enrollee_number field which is the common link between the 2 tables. I need to search though on the group field located in table1.
I read for equality searches it is best to use a non-clustered index so I made this index on the group field since I will search knowing the exact string and nott using a range.
I will then since both tables are linked by the enrollee_number feild make these filed the one and only clustered index in their respective tables. I read clustered is good for sortes searching whatever that means. I am knew to creating indexs and tuning.
Does this seem like the best plan to fit my query or cover it as they sometimes say?
could someone please tell me the difference in a key index and just an index?
One more question...does sql use my indexes are they just hint and sql ultimately will use the best execution plan it thinks is best?????????
TANK U !!!!!!!!!!!!
Now I need to query these 2 tables and join them in the query and use a where clause to filter records I want.
But first I think I should makes some indexes which is where I need help.
I need to query the enrollee_number field which is the common link between the 2 tables. I need to search though on the group field located in table1.
I read for equality searches it is best to use a non-clustered index so I made this index on the group field since I will search knowing the exact string and nott using a range.
I will then since both tables are linked by the enrollee_number feild make these filed the one and only clustered index in their respective tables. I read clustered is good for sortes searching whatever that means. I am knew to creating indexs and tuning.
Does this seem like the best plan to fit my query or cover it as they sometimes say?
could someone please tell me the difference in a key index and just an index?
One more question...does sql use my indexes are they just hint and sql ultimately will use the best execution plan it thinks is best?????????
TANK U !!!!!!!!!!!!