Hi AllI have created a filtered index on a table and when I run a query that should use that index, the Execution Plan shows that the query used the Tables Clustered Index. And, it also indicates that there is a Missing Index and suggests that I create a nonclustered index on the column I have already filtered on.My table is like: CustomerID int Identity PK CustomerName varchar(50) CustomerSegment varchar(50) CustomerCreateDate datetime (and about 10 other columns)
Because there are many queries that are based on the CustomerSegment, I have created 4 filtered indexes based on this column. As background, there are only 4 different customer segments.The filtered indexes are all like:CREATE NONCLUSTERED INDEX CustomerSegment_GoldON Customer (CustomerID)WHERE CustomerSegment = 'Gold'
I run a query like Select CustomerID, CustomerName From Customer Where CustomerSegment = 'Gold'
..and I expected the Exec Plan to show the new filtered index. Instead, it only shows the Clustered Index (on the Customer ID pk).Is this normal? Or, am i doing something wrong?Thanks - will