Quantcast
Channel: Forum SQL Server Database Engine
Viewing all articles
Browse latest Browse all 15889

Estimated Number of rows Issue when Result set is empty

$
0
0
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,


Viewing all articles
Browse latest Browse all 15889

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>