dbTalk Databases Forums  

Parent-Child relationship with using more than one table, possible

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


Discuss Parent-Child relationship with using more than one table, possible in the microsoft.public.sqlserver.olap forum.



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

Default Parent-Child relationship with using more than one table, possible - 12-14-2004 , 01:01 PM






I have used the Parent-Child dimension on many tables within my db and it
works as desired. I do, however, have one set of tables that actually
reference each other and am wondering how, or if it's even possible, to set
up a parent-child relationship between two tables.

Here is how my table structure is:

Table1
Transaction_ID

Table2
In_Transaction_ID
Out_Transaction_ID

Both the In and OUT transaction ids in Table2 point to a specific
transaction_ID in Table1 but the in and out ids are not parent-child to each
other.

In other words, Table1.Transaction_ID -> Table2.In_Transaction_ID ->
Table2.Out_Transaction_ID -> Table1.Transaction_ID ->.....back to
Table2.In_Transaction_ID and so forth and so on...

I've done this in the past using a Stored Proc. and nested sets. Is there a
way to do this in AS?

TIA
Cary LaPora
Database Administrator
The Lancair Company
CaryL (AT) Lancair (DOT) com

Reply With Quote
  #2  
Old   
HWUK
 
Posts: n/a

Default RE: Parent-Child relationship with using more than one table, possible - 12-15-2004 , 05:07 AM






Have you tried to bring the query together in a view and build your dimension
form the view?

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.