Slide 172
Slide 172 text
You can access histograms statistics
It's also possible to see the values of the buckets:
SQL
SQL>
> SELECT
SELECT *
* FROM
FROM information_schema
information_schema.
.column_statistics
column_statistics WHERE
WHERE table_name
table_name =
= 'salaries'
'salaries'\G
\G
*
**
**
**
**
**
**
**
**
**
**
**
**
**
**
**
**
**
**
**
**
**
**
**
**
**
* 1.
1. row
row *
**
**
**
**
**
**
**
**
**
**
**
**
**
**
**
**
**
**
**
**
**
**
**
**
**
**
*
SCHEMA_NAME: employees
SCHEMA_NAME: employees
TABLE_NAME: salaries
TABLE_NAME: salaries
COLUMN_NAME: salary
COLUMN_NAME: salary
HISTOGRAM: {
HISTOGRAM: {"buckets"
"buckets":
: [
[[
[38851
38851,
, 43825
43825,
, 0.10001877249939266
0.10001877249939266,
, 4792
4792]
],
, [
[43826
43826,
, 48296
48296,
, 0.20003202367543452
0.20003202367543452,
, 4486
4486]
],
,
[
[48297
48297,
, 52548
52548,
, 0.30006459948320413
0.30006459948320413,
, 4259
4259]
],
, [
[52549
52549,
, 56737
56737,
, 0.40009441462929834
0.40009441462929834,
, 4192
4192]
],
,
[
[56738
56738,
, 61049
61049,
, 0.5001159477903664
0.5001159477903664,
, 4326
4326]
],
, [
[61050
61050,
, 65687
65687,
, 0.600148523598136
0.600148523598136,
, 4670
4670]
],
,
[
[65688
65688,
, 71042
71042,
, 0.7001728174208794
0.7001728174208794,
, 5412
5412]
],
, [
[71043
71043,
, 77726
77726,
, 0.8002109145519998
0.8002109145519998,
, 6965
6965]
],
,
[
[77727
77727,
, 87476
87476,
, 0.9002490116831202
0.9002490116831202,
, 11200
11200]
],
, [
[87477
87477,
, 152687
152687,
, 1.0
1.0,
, 37264
37264]
]]
],
,
"data-type"
"data-type":
: "int"
"int",
, "auto-update"
"auto-update":
: false
false,
, "null-values"
"null-values":
: 0.0
0.0,
,
"collation-id"
"collation-id":
: 8
8,
, "last-updated"
"last-updated":
: "2025-03-10 11:03:52.005205"
"2025-03-10 11:03:52.005205",
,
"sampling-rate"
"sampling-rate":
: 0.12582426215897724
0.12582426215897724,
, "histogram-type"
"histogram-type":
: "equi-height"
"equi-height",
,
"number-of-buckets-specified"
"number-of-buckets-specified":
: 10
10}
}
Copyright @ 2025 Oracle and/or its affiliates.
124