Hi All,
i query the "orders" table from northwinds database
The query is
SELECT * FROM Orders WHERE OrderDate > '2000-01-01'
The table has the orders data from 1996 to 1998 so ideally the result set of above query is zero records.
But when i look at query execution plan(Ctrl+L)it is showing estimated number of rows as "1"
we have non clustered index on this orderdate column.
Even table has upto date statistics on this "orderdate" column why optimiser is showing estimated number of rows as "1" instead of zero?
Thanks,
i query the "orders" table from northwinds database
The query is
SELECT * FROM Orders WHERE OrderDate > '2000-01-01'
The table has the orders data from 1996 to 1998 so ideally the result set of above query is zero records.
But when i look at query execution plan(Ctrl+L)it is showing estimated number of rows as "1"
we have non clustered index on this orderdate column.
Even table has upto date statistics on this "orderdate" column why optimiser is showing estimated number of rows as "1" instead of zero?
Thanks,