When Query Plans Lie Part 2
Getting Weirder
In Part 1, we looked at how query plans can tell us little lies.
Now we're going to look at how those little lies can turn into bigger lies.
Adding An Index
Right now, this is our query:
[crayon-6a6ea4a14a14a228480896/]
If we add this filtered index, our query will have a grand ol' time using it;
[crayon-6a6ea4a14a154908896987/]
Leaving aside my own advice about filtered indexes, what happens to the query plan now?