Database Journal
MS SQL Oracle DB2 Access MySQL PostgreSQL Sybase PHP SQL Etc SQL Scripts & Samples Links Database Forum

» Database Journal Home
» Database Articles
» Database Tutorials
MS SQL
Oracle
DB2
MS Access
MySQL
» RESOURCES
Database Tools
SQL Scripts & Samples
Links
» Database Forum
» Sitemap
Free Newsletters:
DatabaseDaily  
News Via RSS Feed


follow us on Twitter
Database Journal |DBA Support |SQLCourse |SQLCourse2
 

Featured Database Articles

MS SQL

Posted Oct 7, 2002

Introduction to SQL Server 2000 Analysis Services: Parent-Child Dimensions - Page 6

By William Pearson


Building and Managing a Parent-Child Dimension

We now enter the dimension construction phase of the guided cube build, where we will begin our exploration of the parent-child dimension.


Creating the PARENT-CHILD DIMENSION with the Dimension Wizard

The Cube Wizard now prompts us to select dimensions for our cube. The dimensions are, as yet, undefined, and at this stage, we will launch the Dimension Wizard to begin designating the dimensions.

31. Click the New Dimension button.

The Dimension Wizard - Welcome dialog appears, as shown in Illustration 19 below:



Illustration 19: The Dimension Wizard Appears


32. Click Next.

The Dimension Wizard - Choose How You Want to Create the Dimension dialog appears.

33. Select Parent-Child: Two Related Columns in a Single Dimension Table by clicking the respective radio button.

We are given a description of the parent-child dimension choice in the lower section of the dialog, which is depicted in Illustration 20 below.



Illustration 20: The Dimension Wizard - Choose How You Want to Create the Dimension Dialog


34. Click Next.

The Dimension Wizard - Select the Dimension Table dialog appears.

35. Select the employee table.

The columns from the employee table appear in the right side Details area of the dialog, as shown below.



Illustration 21: The Dimension Wizard - Select the Dimension Table Dialog


36. Click Next.

We arrive at the Dimension Wizard - Select the Columns that Define the Parent-Child Hierarchy dialog.

37. Select the columns shown in Table 1 below for the respective dropdown lists within the dialog:


Parent-Child Hierarchy

Dialog Setpoints

 

 

 

 

 

Dropdown List

 

 

 

Selection

 

 

 

 

 

1. Member Key

 

 

 

employee_id

 

 

 

 

 

2. Parent Key

 

 

 

supervisor_id

 

 

 

 

 

3. Member Name

 

 

 

full_name

 

 

 

 

 

Table 1: Columns that Define the Parent-Child Hierarchy Setpoints


The completed dialog appears as shown in Illustration 22 below.



Illustration 22: The Dimension Wizard - Columns that Define the Parent-Child Hierarchy


38. Click Next.

The Dimension Wizard - Select Advanced Options dialog appears, as shown below.



Illustration 23: The Dimension Wizard - Select Advanced Options Dialog


39. Click Next to skip this dialog and to continue to its successor.


Page 7: Building a P-C Dimension Continued


See All Articles by Columnist William E. Pearson, III




MS SQL Archives

Comment and Contribute

 


(Maximum characters: 1200). You have characters left.

 

 




Latest Forum Threads
MS SQL Forum
Topic By Replies Updated
SQL 2005: SSIS: Error using SQL Server credentials poverty 3 August 17th, 07:43 AM
Need help changing table contents nkawtg 1 August 17th, 03:02 AM
SQL Server Memory confifuration bhosalenarayan 2 August 14th, 05:33 AM
SQL Server Primary Key and a Unique Key katty.jonh 2 July 25th, 10:36 AM


















Thanks for your registration, follow us on our social networks to keep up-to-date