Hi Guys,
I have a table with the following columns:
Column1
Column2
Column3
Column Description:
Column 1 is an identity column with a primary key
Column 2 is a foreign key (bigint)
Column 3 is a varchar field
Indexes:
Column1 being the primary key has the Clustered index
Cloumn 2 AND Column 3 combination has a Unique Index (Not constraint) defined on them
All indexes are created on a separate file group (Maintained just for indexes).
Data Count:
The table currently has not more than 3 rows (but this is transactional in nature)
Query Plan:
When i give the following query:
select Column1 from Table
The query plan uses an INDEX (Second one) scan and NOT a clustered index scan.
Is this because of lack of data or wrong design?
Known is handfull, Unknown is worldfull
I have a table with the following columns:
Column1
Column2
Column3
Column Description:
Column 1 is an identity column with a primary key
Column 2 is a foreign key (bigint)
Column 3 is a varchar field
Indexes:
Column1 being the primary key has the Clustered index
Cloumn 2 AND Column 3 combination has a Unique Index (Not constraint) defined on them
All indexes are created on a separate file group (Maintained just for indexes).
Data Count:
The table currently has not more than 3 rows (but this is transactional in nature)
Query Plan:
When i give the following query:
select Column1 from Table
The query plan uses an INDEX (Second one) scan and NOT a clustered index scan.
Is this because of lack of data or wrong design?
Known is handfull, Unknown is worldfull