Hello,
We are having a bit of a 'discussion' in our office...
Wht does COLLECT STATS actually do?
If I have a column (Col_1) on a table (Tab_1) - does the collect stats basically carry out:
Select
Count (*)
,Col_1
From
Tab_1
Group by 2;
Or does it do more complex things?
You can use "collect stats on Tab_1 COLUMN Col_1;
even if the column happens to be an INDEX... so...
is there a differnce in collecting stats on a column as opposed to an index?
Thanks in advance,
Liam.
We are having a bit of a 'discussion' in our office...
Wht does COLLECT STATS actually do?
If I have a column (Col_1) on a table (Tab_1) - does the collect stats basically carry out:
Select
Count (*)
,Col_1
From
Tab_1
Group by 2;
Or does it do more complex things?
You can use "collect stats on Tab_1 COLUMN Col_1;
even if the column happens to be an INDEX... so...
is there a differnce in collecting stats on a column as opposed to an index?
Thanks in advance,
Liam.