• GilaMonster (12/20/2013)


    Lowell (12/20/2013)


    » in an actual execution plan, for any node, if the actual number of rows is orders of magnitude higher than the estimated number of rows, the statistics on the table being used in that node are out of date.

    Not necessarily. There's a number of other reasons for cardinality estimates being wrong

    oh yes, i agree; but it's certainly something to watch for.

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!