Alias Tables for diamond relationships
Posted: Mon Dec 21, 2009 9:19 pm
While the following is not really a true example of a diamond relationship, the impact is the same, and this sort of scenario is a fairly common occurrence in the database in my system:
Customers relate to Sales Reps (Jccust.Jcreps_Idno --> Jcreps.Idno)
Orders relate to Customers (Jcjobs.Cust_Idno --> Jccust.Idno)
Orders relate to Sales Reps, and can be a different rep than the order's customer relates to, (Jcjobs.Jcreps_Idno --> Jcorep.Idno) Jcorep being an alias of table Jcreps.
I'm playing around with defining in relations in DAI and wondering how I would do this -- in case I find I need to. In VDF you absolutely need to since the relationships tend to be "hard-coded".
I am also thinking it would be really nice for VDF developers to have a feature that would automatically generate all the relations in DAI that are defined in a workspace database or all the tables in a DF filelist.
Bob
Customers relate to Sales Reps (Jccust.Jcreps_Idno --> Jcreps.Idno)
Orders relate to Customers (Jcjobs.Cust_Idno --> Jccust.Idno)
Orders relate to Sales Reps, and can be a different rep than the order's customer relates to, (Jcjobs.Jcreps_Idno --> Jcorep.Idno) Jcorep being an alias of table Jcreps.
I'm playing around with defining in relations in DAI and wondering how I would do this -- in case I find I need to. In VDF you absolutely need to since the relationships tend to be "hard-coded".
I am also thinking it would be really nice for VDF developers to have a feature that would automatically generate all the relations in DAI that are defined in a workspace database or all the tables in a DF filelist.
Bob