Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Section 7: Histograms & Extended Statistics > Histograms Internal Structure

Histograms Internal Structure

Image A histogram is a structure with buckets which contain bitmap references to rows. Each bucket represents a particular column value and the bitmap references all rows with that value. When a SQL predicate references the column, the histogram can be consulted to determine which rows include that specific value. There are different types of histograms created and used by the Optimizer.

Image Frequency histograms have a bucket for each distinct value. For example, if 20 employees have a salary of $30,000, then a frequency histogram for the SALARY column would represent the value $30,000 with one bucket. Whenever the number of distinct values are less than or equal to the number of buckets, then a frequency histogram is used.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial