dbTalk Databases Forums  

Parent-child dimension with two tables

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss Parent-child dimension with two tables in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Piotr J
 
Posts: n/a

Default Parent-child dimension with two tables - 11-28-2006 , 08:32 AM






Hello,

I have the following problems.

1)

There are two tables containing information about relationship:

Table geo_dict contains:
item_id
item_code -> used by fact table
item_name

Table geo_tree contains:
rec_id,
parent_id -> which points rec_id in parent-child relationship
item_id -> which relates to geo_dict.item_id


I'd like to create one dimension with parent-child relationship but the
item_name should be presented in hierarchy not parent_id.

I know that it can be realized with named query in data view, but this
dimension must be stored in ROLAP model so this solution won't work.


Do you have any suggestions?

Piotr J


Reply With Quote
  #2  
Old   
Marco Russo
 
Posts: n/a

Default Re: Parent-child dimension with two tables - 11-29-2006 , 02:44 AM






Can you create a VIEW into the relational database?

Marco Russo
http://www.sqlbi.eu
http://www.sqljunkies.com/weblog/sqlbi

Piotr J ha scritto:

Quote:
Hello,

I have the following problems.

1)

There are two tables containing information about relationship:

Table geo_dict contains:
item_id
item_code -> used by fact table
item_name

Table geo_tree contains:
rec_id,
parent_id -> which points rec_id in parent-child relationship
item_id -> which relates to geo_dict.item_id


I'd like to create one dimension with parent-child relationship but the
item_name should be presented in hierarchy not parent_id.

I know that it can be realized with named query in data view, but this
dimension must be stored in ROLAP model so this solution won't work.


Do you have any suggestions?

Piotr J


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.