The WIDTH_BUCKET(q_t.val, 100, 1000, 10) in the
query above specifies the range to be split into
ten buckets as shown in the table. The values
729 and 730 fall in consecutive buckets. The
value of 1000 and above will be
out of range
and get designated as
bucket_value + 1
(11).
Also shown is the way NTile function splits the data into approximate segments based on the value in the range of 1 and 10. |
72926