Docsity

Data Cubes-Data Warehouse-Lecture Handout, Exercises of Data Warehousing

Toggle sidebar
bg1
Although we usually think of cubes as 3-D geometric structures, in data
warehouse the data cube can be n-dimensional. To gain a better
understanding of data cubes, let us start with an example of a 2-D data
cube that is, in fact, a table or spreadsheet for sales data per quarter (time
dimension) for various items (product dimension) for a particular location.
The fact of measure is the dollar amount sold (in thousands).
In order to view the sales data in a third dimension (the location), we
include additional 2-D sales data for other locations. Conceptually, we may
view these data in the form of a 3-D data cube as shown below.
docsity.com
pf2

Partial preview of the text

Download Data Cubes-Data Warehouse-Lecture Handout and more Exercises Data Warehousing in PDF only on Docsity!

Although we usually think of cubes as 3-D geometric structures, in data warehouse the data cube can be n-dimensional. To gain a better understanding of data cubes, let us start with an example of a 2-D data cube that is, in fact, a table or spreadsheet for sales data per quarter (time dimension) for various items (product dimension) for a particular location. The fact of measure is the dollar amount sold (in thousands).

In order to view the sales data in a third dimension (the location), we include additional 2-D sales data for other locations. Conceptually, we may view these data in the form of a 3-D data cube as shown below.

docsity.com

Suppose, we would like to view our sales data in a fourth dimension, such as supplier. Viewing this in 4-D becomes tricky; however, we can think of a 4-D cube as being a series of 3-D cubes, as shown below. If we continue this way, we may display any n-D data in a series of (n-1)D cubes.

The data cube is a metaphor or concept for multidimensional data storage. The actual physical storage of such data may differ from its logical representation.

In the data warehouse literature, 1-D, 2-D, 3-D cube and so on are in general referred to as a cuboid. Given a set of dimensions, we can construct a set of cuboids, each showing the data at a different level of summarization. The cuboid that holds the lowest level of summarization is called the base cuboid. For example, the 4-D cuboid below is the base cuboid for the given time, item, location, and supplier dimensions. The apex cuboid is typically denoted by all.

docsity.com