Tutorial/Schema cheatsheet
Revision as of 01:19, 28 February 2014 by old>Admin (→Related table TWO steps away)
Schema structure overview
- Table (one):
- Structure: The centre table
- Dimensions (many)
- Structure: Related tables or groupable values
- OLAP: Columns/row "headers" in the cube
- Measures (many)
- Structure: Values in the centre table
- OLAP: Numbers to display in cell cubes
Defining dimensions
Simple groupable values
Example:
Related table one step away
Example:
Related table TWO steps away
Table structure
- data_child
- PARENT: Key to the "parent" solution
- data_parent
- GRANDPARENT: Key to the "grandparent" solution
- PARENTNAME
- data_grandparent
- GRANDPARENTNAME
The cube schema looks like this:
...... <Dimension name="Example" foreignKey="PARENT"> <Hierarchy hasAll="true" primaryKey="DataID" primaryKeyTable="data_parent"> <Join leftKey="GRANDPARENT" rightKey="DataID">