« first day (1866 days earlier)      last day (2995 days later) » 

1:09 AM
@ypercubeᵀᴹ @dezso @AndriyM @TomV Both now approved.
 
 
11 hours later…
12:07 PM
Afternoon Heap
 
 
1 hour later…
1:22 PM
@ypercubeᵀᴹ Ha weekend activity, Hi!
 
2:01 PM
@PaulWhite thanks
 
 
2 hours later…
4:22 PM
Got no balance today, nearly fell over a few times. Must have an ear infection or something! :/
 
 
7 hours later…
11:34 PM
Am I misunderstanding Celko here? This paragraph seems to be saying he thinks statistics work like indexes:
But why do it this way? Why not use “HAVING COUNT (DISTINCT product_name) = 1” instead?  This would look like the first query. The optimizer has to do a scan to count the product names, but the table statistics in every SQL compiler I know about keeps at least the min, max, and row count for computing execution plans. Once I see the min (or max) value for that column, I know that I have found the min (or max) value for each salesman and can ignore the rest of his values.
 

« first day (1866 days earlier)      last day (2995 days later) »