View Single Post

   
  #3 (permalink)  
Old 02-26-2008, 11:16 AM
Erwin
 
Posts: n/a
Default Re: Optimizing Query

> datatype of STATUS ?

I use SMALLINT. Actually, I need only two values for STATUS.

> did you a
> runstats WITH DISTRIBUTION
> on the table?, otherwise the optimizer does not know that there are
> only 2 different values for STATUS.


I didn't execute RUNSTATS WITH DISTRIBUTION on the table. I try to
execute RUNSTATS WITH DISTRIBUTION, and it works.

Thanks
Reply With Quote