In Oracle, the WIDTH_BUCKET()
function allows you to construct equiwidth histograms, in which the histogram range is divided into intervals that have identical size.
For a given expression, WIDTH_BUCKET()
returns the bucket number into which the value of this expression would fall after being evaluated.