If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > ProBlems with Large Data Distribution Statistics

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-08-09, 09:52
linakichi linakichi is offline
Registered User
 
Join Date: Aug 2008
Posts: 45
ProBlems with Large Data Distribution Statistics

Hi all... It's been quite a while since my last post. Happy New Year !!

I'm using DB2 version 8.2 on Linux Redhat

On this occassion, I have a question about distribution statistics in DB2.
About frequency statistics
According to the definition, the values' each frequency should be able
to be calculated as select count(*) from table where col=value;
The numbers was right when applying on small size data (less than 100)

About quantile statistics
We should be able to count the quantile as select count(*) from table
where col<=value
The numbers was also correct when applying on small sized data

The problem is when I applied the distribution statistics on 10000 rows of data (only a column of numbers), the values were different than what I thought, it's either less or more than the numbers produced from the queries.

I also managed to notice that when dealing with unique data, when the data number is small, the distribution statistics won't be taken, but if the data number large, the distribution statistics would be taken. I wonder from where did those numbers come...

Sorry for the long explanation, and if anyone have any references according this matter, please...
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On