2026-03-12 20:23:15

This commit is contained in:
root
2026-03-12 21:23:47 +01:00
parent eab4b36eca
commit 93039b8489
3332 changed files with 699614 additions and 0 deletions

13
vdh/freq_histogram.sql Normal file
View File

@@ -0,0 +1,13 @@
select endpoint_value row_value,
curr_num - nvl(prev_num,0) row_count
from ( select endpoint_value,
endpoint_number curr_num,
lag(endpoint_number,1) over
( order by endpoint_number
) prev_num
from dba_tab_histograms
where owner = '&T_OWNER'
and table_name = '&T_TABLE'
and column_name = '&T_COLUMN'
)
order by endpoint_value;