Mapping Overview

OLE DB Programmer's Reference

A dataset is a complex entity. In relational terms, it is not convenient to represent a dataset as a two-dimensional table. Instead, it is represented as a set of multiple tables. There is a total of n+1 tables, where n is the number of axes in the dataset.

Consider an MDX statement of the following form:

SELECT    <axis specification> ON COLUMNS,    <axis specification> ON ROWS FROM <cube specification> WHERE <slicer specification>

This statement is mapped to a set of SQL statements, which results in the following three tables:

  • The COLUMNS axis table. This table has one row for each tuple in the COLUMNS axis. This table is used as the basis of an axis rowset. (It can be appropriately joined with the MEMBERS table and the LEVELS table to get an axis rowset.)
  • The ROWS axis table. This table has one row for each tuple in the ROWS axis.
  • The VALUES table. This table contains the values at the intersection points of the COLUMNS and ROWS tables. Each axis table has a RANK column that specifies the tuple coordinate on the axis. The VALUES table has two columns: RANK and VALUE. The RANK column contains the cell ordinal, and the VALUE column contains the data value.

For further information about MDX statements, see the following topics in this section:

  • FROM Clause
  • Axis Expressions
  • WHERE Clause

1998-2001 Microsoft Corporation. All rights reserved.



Microsoft Ole Db 2.0 Programmer's Reference and Data Access SDK
Microsoft OLE DB 2.0 Programmers Reference and Data Access SDK (Microsoft Professional Editions)
ISBN: 0735605904
EAN: 2147483647
Year: 1998
Pages: 1083

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net