Hello, SQL 2000
I have a query
I get an execution plan that uses clustered index seek on table1 and a clustered index scan on table2 which has a cost of 67%.
Why since the join is between two primary keys does it use scan instead of seek for table2?
Thanks
djj
The Lord is My Shepard (Psalm 23) - I need someone to lead me!
I have a query
Code:
SELECT
A.PK_value,
A.somevlaue1,
B.somevalue2
FROM table1 A
INNER JOIN table2 B
ON A.PK_value = B.PK_value
WHERE A.PK_value = 'abc'
I get an execution plan that uses clustered index seek on table1 and a clustered index scan on table2 which has a cost of 67%.
Why since the join is between two primary keys does it use scan instead of seek for table2?
Thanks
djj
The Lord is My Shepard (Psalm 23) - I need someone to lead me!