Relationship between two multi-valued child tablesConstraint many to many table between two child tablesWeak...

What does @RC mean in SSDT SQL Server Unit Testing?

lead or lag function to get several values, not just the nth

Six real numbers so that product of any five is the sixth one

Are paired adjectives bad style?

The need of reserving one's ability in job interviews

Can a space-faring robot still function over a billion years?

What are the issues with an additional (limited) concentration slot instead of Bladesong?

I can't die. Who am I?

If a set is open, does that imply that it has no boundary points?

What am I? I am in theaters and computer programs

Get length of the longest sequence of numbers with the same sign

How to mitigate "bandwagon attacking" from players?

How to kill a localhost:8080

Called into a meeting and told we are being made redundant (laid off) and "not to share outside". Can I tell my partner?

Are small insurances worth it

Where is the line between being obedient and getting bullied by a boss?

Real life puzzle: Unknown alphabet or shorthand

Is it possible to make a clamp function shorter than a ternary in JS?

Misplaced tyre lever - alternatives?

Difference between 'stomach' and 'uterus'

How can I handle a player who pre-plans arguments about my rulings on RAW?

Is it possible to convert a suspension fork to rigid by drilling it?

Non-Italian European mafias in USA?

Make me a metasequence



Relationship between two multi-valued child tables


Constraint many to many table between two child tablesWeak entity and one-one or many-many relationshipDeciding when to extend to child tablesDatabase Design Techniques, Notations and TerminologyHow to convert this relation to 2NF?Conversion of simple ERD to Table: is the solution below any good?Is my entity-relationship diagram about customers and accounts correct?In a one-to-one relationship, where should the foreign key be placed?How to represent the optionality of a many-to-one mandatory relationship from the Parent to its two Child entity types in an ERD?What is the cardinality of entity relationship between Employee and Department?If two entities are engaged in a many-to-many relationship with both entities participating totally, how many tables are needed?













2















Scenario



In my system, there are a number of different TradeBaskets. Each TradeBasket contains a number of different Securities. The Securities have a Type, Value, Sector etc... and new Securities are populated into the basket each day (and others can be removed).



Each TradeBasket has a unqiue list of EligibleEquity that can be accepted from the Securities within the TradeBasket. EligibleEquity can take the form of CommonStock, PfdStock, Reit, MutualFunds etc. My initial approach was to model the EligibleEquities as a multivalued attribute (instead of an entity). But I believe the best approach is to model EligibleEquity as an entity.



The TradeBasket also has a list of EligibleIndices that are accepted for the EligibleEquities in the TradeBasket. Thus, for each type of EligibleEquity in the TradeBasket, there is a list of associated EligibleIndices. It is true that each type of EligibleEquity(such as CommonStock, PfdStock etc...) can exist in a number of different EligibleIndices (such as S&P500, AS25X, CAC40 etc...) and that each EligibleIndices can be associated with a number of different EligibleEquities. Thus, I have assigned a Many:Many relationship between EligibleEntities and EligibleIndices.



ERD Design
ERD Design



In the ERD provided, I have colour coded the relationship between the TradeBasket and EligibleEquities and EligibleIndices.



In one case (red), I have mapped the EligibleEquity and EligibleIndices as a 1:Many relationship with the TradingBasket. In this case, I consider EligibleEquity and EligibleIndices as multi-valued attributes of the TradeBasket. Thus, in order to normalize the TradeBasket, the EligibleEquity and EligibleIndices are placed in separate tables (using the primary key of TradeBasket as the foreign key in each EligibleEquity and EligibleIndices child table). However, is it possible to create a Many:Many relationship between ElibibleEquity and EligibleIndices if they are children to the TradeBasket?



In the other case (purple), I have mapped the EligibleEquity and EligibleIndices as a Many:Many relationship with the TradingBasket. In this case, I consider EligibleEquity and EligibleIndices as entities in their own rite. and the Many:Many relationship between EligibleEquities and EligibleIndices is straightforward.



Questions:




  1. To facilitate a relationship between EligibleEquity and EligibleIndices, what the cardinalities should I adopt (red or purple - with respect to the ERD)?


  2. If the EligibleEquity and EligibleIndices should be mapped as multivalued entities of the TradingBasket, what would the primary key of the "junction" table between EligibleEquity and EligibleIndices be?





This question has a similar discussion, but doesn't fully answer my question.



Thanks for any help!










share|improve this question
















bumped to the homepage by Community 3 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.




















    2















    Scenario



    In my system, there are a number of different TradeBaskets. Each TradeBasket contains a number of different Securities. The Securities have a Type, Value, Sector etc... and new Securities are populated into the basket each day (and others can be removed).



    Each TradeBasket has a unqiue list of EligibleEquity that can be accepted from the Securities within the TradeBasket. EligibleEquity can take the form of CommonStock, PfdStock, Reit, MutualFunds etc. My initial approach was to model the EligibleEquities as a multivalued attribute (instead of an entity). But I believe the best approach is to model EligibleEquity as an entity.



    The TradeBasket also has a list of EligibleIndices that are accepted for the EligibleEquities in the TradeBasket. Thus, for each type of EligibleEquity in the TradeBasket, there is a list of associated EligibleIndices. It is true that each type of EligibleEquity(such as CommonStock, PfdStock etc...) can exist in a number of different EligibleIndices (such as S&P500, AS25X, CAC40 etc...) and that each EligibleIndices can be associated with a number of different EligibleEquities. Thus, I have assigned a Many:Many relationship between EligibleEntities and EligibleIndices.



    ERD Design
    ERD Design



    In the ERD provided, I have colour coded the relationship between the TradeBasket and EligibleEquities and EligibleIndices.



    In one case (red), I have mapped the EligibleEquity and EligibleIndices as a 1:Many relationship with the TradingBasket. In this case, I consider EligibleEquity and EligibleIndices as multi-valued attributes of the TradeBasket. Thus, in order to normalize the TradeBasket, the EligibleEquity and EligibleIndices are placed in separate tables (using the primary key of TradeBasket as the foreign key in each EligibleEquity and EligibleIndices child table). However, is it possible to create a Many:Many relationship between ElibibleEquity and EligibleIndices if they are children to the TradeBasket?



    In the other case (purple), I have mapped the EligibleEquity and EligibleIndices as a Many:Many relationship with the TradingBasket. In this case, I consider EligibleEquity and EligibleIndices as entities in their own rite. and the Many:Many relationship between EligibleEquities and EligibleIndices is straightforward.



    Questions:




    1. To facilitate a relationship between EligibleEquity and EligibleIndices, what the cardinalities should I adopt (red or purple - with respect to the ERD)?


    2. If the EligibleEquity and EligibleIndices should be mapped as multivalued entities of the TradingBasket, what would the primary key of the "junction" table between EligibleEquity and EligibleIndices be?





    This question has a similar discussion, but doesn't fully answer my question.



    Thanks for any help!










    share|improve this question
















    bumped to the homepage by Community 3 mins ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.


















      2












      2








      2








      Scenario



      In my system, there are a number of different TradeBaskets. Each TradeBasket contains a number of different Securities. The Securities have a Type, Value, Sector etc... and new Securities are populated into the basket each day (and others can be removed).



      Each TradeBasket has a unqiue list of EligibleEquity that can be accepted from the Securities within the TradeBasket. EligibleEquity can take the form of CommonStock, PfdStock, Reit, MutualFunds etc. My initial approach was to model the EligibleEquities as a multivalued attribute (instead of an entity). But I believe the best approach is to model EligibleEquity as an entity.



      The TradeBasket also has a list of EligibleIndices that are accepted for the EligibleEquities in the TradeBasket. Thus, for each type of EligibleEquity in the TradeBasket, there is a list of associated EligibleIndices. It is true that each type of EligibleEquity(such as CommonStock, PfdStock etc...) can exist in a number of different EligibleIndices (such as S&P500, AS25X, CAC40 etc...) and that each EligibleIndices can be associated with a number of different EligibleEquities. Thus, I have assigned a Many:Many relationship between EligibleEntities and EligibleIndices.



      ERD Design
      ERD Design



      In the ERD provided, I have colour coded the relationship between the TradeBasket and EligibleEquities and EligibleIndices.



      In one case (red), I have mapped the EligibleEquity and EligibleIndices as a 1:Many relationship with the TradingBasket. In this case, I consider EligibleEquity and EligibleIndices as multi-valued attributes of the TradeBasket. Thus, in order to normalize the TradeBasket, the EligibleEquity and EligibleIndices are placed in separate tables (using the primary key of TradeBasket as the foreign key in each EligibleEquity and EligibleIndices child table). However, is it possible to create a Many:Many relationship between ElibibleEquity and EligibleIndices if they are children to the TradeBasket?



      In the other case (purple), I have mapped the EligibleEquity and EligibleIndices as a Many:Many relationship with the TradingBasket. In this case, I consider EligibleEquity and EligibleIndices as entities in their own rite. and the Many:Many relationship between EligibleEquities and EligibleIndices is straightforward.



      Questions:




      1. To facilitate a relationship between EligibleEquity and EligibleIndices, what the cardinalities should I adopt (red or purple - with respect to the ERD)?


      2. If the EligibleEquity and EligibleIndices should be mapped as multivalued entities of the TradingBasket, what would the primary key of the "junction" table between EligibleEquity and EligibleIndices be?





      This question has a similar discussion, but doesn't fully answer my question.



      Thanks for any help!










      share|improve this question
















      Scenario



      In my system, there are a number of different TradeBaskets. Each TradeBasket contains a number of different Securities. The Securities have a Type, Value, Sector etc... and new Securities are populated into the basket each day (and others can be removed).



      Each TradeBasket has a unqiue list of EligibleEquity that can be accepted from the Securities within the TradeBasket. EligibleEquity can take the form of CommonStock, PfdStock, Reit, MutualFunds etc. My initial approach was to model the EligibleEquities as a multivalued attribute (instead of an entity). But I believe the best approach is to model EligibleEquity as an entity.



      The TradeBasket also has a list of EligibleIndices that are accepted for the EligibleEquities in the TradeBasket. Thus, for each type of EligibleEquity in the TradeBasket, there is a list of associated EligibleIndices. It is true that each type of EligibleEquity(such as CommonStock, PfdStock etc...) can exist in a number of different EligibleIndices (such as S&P500, AS25X, CAC40 etc...) and that each EligibleIndices can be associated with a number of different EligibleEquities. Thus, I have assigned a Many:Many relationship between EligibleEntities and EligibleIndices.



      ERD Design
      ERD Design



      In the ERD provided, I have colour coded the relationship between the TradeBasket and EligibleEquities and EligibleIndices.



      In one case (red), I have mapped the EligibleEquity and EligibleIndices as a 1:Many relationship with the TradingBasket. In this case, I consider EligibleEquity and EligibleIndices as multi-valued attributes of the TradeBasket. Thus, in order to normalize the TradeBasket, the EligibleEquity and EligibleIndices are placed in separate tables (using the primary key of TradeBasket as the foreign key in each EligibleEquity and EligibleIndices child table). However, is it possible to create a Many:Many relationship between ElibibleEquity and EligibleIndices if they are children to the TradeBasket?



      In the other case (purple), I have mapped the EligibleEquity and EligibleIndices as a Many:Many relationship with the TradingBasket. In this case, I consider EligibleEquity and EligibleIndices as entities in their own rite. and the Many:Many relationship between EligibleEquities and EligibleIndices is straightforward.



      Questions:




      1. To facilitate a relationship between EligibleEquity and EligibleIndices, what the cardinalities should I adopt (red or purple - with respect to the ERD)?


      2. If the EligibleEquity and EligibleIndices should be mapped as multivalued entities of the TradingBasket, what would the primary key of the "junction" table between EligibleEquity and EligibleIndices be?





      This question has a similar discussion, but doesn't fully answer my question.



      Thanks for any help!







      database-design ms-access






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Sep 11 '18 at 16:34









      MDCCL

      6,85331745




      6,85331745










      asked Mar 29 '17 at 12:25









      James Peter McConnellJames Peter McConnell

      9515




      9515





      bumped to the homepage by Community 3 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community 3 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
























          1 Answer
          1






          active

          oldest

          votes


















          0














          Before I attempt to answer your questions, just a couple of hints that may help
          you to create the perfect model :-) Bear with me.




          • When you construct an ERD, try and avoid "database" terminology such as:
            primary key, foreign key, table, row. Instead, use the terms "entity", "relationship", "unique identifier", "instance".


          • Use singular nouns as entity names. When creating an entity, think about a SINGLE instance (of an entity). This may make it easier to find the correct cardinalities.


          • You can draw as many relationships as you like. However, only keep the relationships that make sense in your system (eg if there are 5 entities, and the relationships in your diagram make it look a bit like a pentagram inscribed into a 5-sided polygon, then there are - in all probability - too many relationships). The MANY side of a relationship will eventually be transformed into a foreign key (which we should not worry about when working at the ERD level).



          Now to your questions:



          Q0) However, is it possible to create a Many:Many relationship between ElibibleEquity and EligibleIndices if they are children to the TradeBasket?



          Answer 0) Yes. Just make sure that this really makes sense (see answer 1).



          Q1) To facilitate a relationship between EligibleEquity and EligibleIndices, what should the cardinalities should i adopt (red or purple - in relation to the ERD)?



          Answer 1) Find out, and use, whatever is correct!
          Does EACH EligibleEquity (potentially) use/contain ONE OR MORE EquitableIndices?
          AND: Is EACH EquitableIndex used/contained within ONE OR MORE EquitableEquities?
          -> If the answer to both of these questions is: YES, then model a many-to-many relationship. (This will require an "intersection" or "junction" later on -> see the HYPOTHETICAL... entity in the attached ERD.)



          enter image description here



          Q2) If the EligibleEquity and EligibleIndices should be mapped as multivalued entities of the TradingBasket, what would the primary key of the junction table between EligibleEquity and EligibleIndices be?



          Answer 2) -> The key for this could be: the combination of the UNIQUE IDENTIFIERs (UIDs) of TradingBasked and EligibleEquity (or EligibleIndex, respectively).



          Eg - situation as discussed in "Answer 1": if the UIDs are the attributes(EligibleEquity)TYPE, and (EligibleIndex)INDEX_NAME, respectively, then a combination of these (unique) values can serve as a UID of the intersection/junction. (-> See the keys of the HYPOTHETICAL... table in the attached Relational model.)



          enter image description here



          There is more to be considered, and I'm sure that there will be more questions. Let us know how you get on!






          share|improve this answer























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "182"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f168503%2frelationship-between-two-multi-valued-child-tables%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            Before I attempt to answer your questions, just a couple of hints that may help
            you to create the perfect model :-) Bear with me.




            • When you construct an ERD, try and avoid "database" terminology such as:
              primary key, foreign key, table, row. Instead, use the terms "entity", "relationship", "unique identifier", "instance".


            • Use singular nouns as entity names. When creating an entity, think about a SINGLE instance (of an entity). This may make it easier to find the correct cardinalities.


            • You can draw as many relationships as you like. However, only keep the relationships that make sense in your system (eg if there are 5 entities, and the relationships in your diagram make it look a bit like a pentagram inscribed into a 5-sided polygon, then there are - in all probability - too many relationships). The MANY side of a relationship will eventually be transformed into a foreign key (which we should not worry about when working at the ERD level).



            Now to your questions:



            Q0) However, is it possible to create a Many:Many relationship between ElibibleEquity and EligibleIndices if they are children to the TradeBasket?



            Answer 0) Yes. Just make sure that this really makes sense (see answer 1).



            Q1) To facilitate a relationship between EligibleEquity and EligibleIndices, what should the cardinalities should i adopt (red or purple - in relation to the ERD)?



            Answer 1) Find out, and use, whatever is correct!
            Does EACH EligibleEquity (potentially) use/contain ONE OR MORE EquitableIndices?
            AND: Is EACH EquitableIndex used/contained within ONE OR MORE EquitableEquities?
            -> If the answer to both of these questions is: YES, then model a many-to-many relationship. (This will require an "intersection" or "junction" later on -> see the HYPOTHETICAL... entity in the attached ERD.)



            enter image description here



            Q2) If the EligibleEquity and EligibleIndices should be mapped as multivalued entities of the TradingBasket, what would the primary key of the junction table between EligibleEquity and EligibleIndices be?



            Answer 2) -> The key for this could be: the combination of the UNIQUE IDENTIFIERs (UIDs) of TradingBasked and EligibleEquity (or EligibleIndex, respectively).



            Eg - situation as discussed in "Answer 1": if the UIDs are the attributes(EligibleEquity)TYPE, and (EligibleIndex)INDEX_NAME, respectively, then a combination of these (unique) values can serve as a UID of the intersection/junction. (-> See the keys of the HYPOTHETICAL... table in the attached Relational model.)



            enter image description here



            There is more to be considered, and I'm sure that there will be more questions. Let us know how you get on!






            share|improve this answer




























              0














              Before I attempt to answer your questions, just a couple of hints that may help
              you to create the perfect model :-) Bear with me.




              • When you construct an ERD, try and avoid "database" terminology such as:
                primary key, foreign key, table, row. Instead, use the terms "entity", "relationship", "unique identifier", "instance".


              • Use singular nouns as entity names. When creating an entity, think about a SINGLE instance (of an entity). This may make it easier to find the correct cardinalities.


              • You can draw as many relationships as you like. However, only keep the relationships that make sense in your system (eg if there are 5 entities, and the relationships in your diagram make it look a bit like a pentagram inscribed into a 5-sided polygon, then there are - in all probability - too many relationships). The MANY side of a relationship will eventually be transformed into a foreign key (which we should not worry about when working at the ERD level).



              Now to your questions:



              Q0) However, is it possible to create a Many:Many relationship between ElibibleEquity and EligibleIndices if they are children to the TradeBasket?



              Answer 0) Yes. Just make sure that this really makes sense (see answer 1).



              Q1) To facilitate a relationship between EligibleEquity and EligibleIndices, what should the cardinalities should i adopt (red or purple - in relation to the ERD)?



              Answer 1) Find out, and use, whatever is correct!
              Does EACH EligibleEquity (potentially) use/contain ONE OR MORE EquitableIndices?
              AND: Is EACH EquitableIndex used/contained within ONE OR MORE EquitableEquities?
              -> If the answer to both of these questions is: YES, then model a many-to-many relationship. (This will require an "intersection" or "junction" later on -> see the HYPOTHETICAL... entity in the attached ERD.)



              enter image description here



              Q2) If the EligibleEquity and EligibleIndices should be mapped as multivalued entities of the TradingBasket, what would the primary key of the junction table between EligibleEquity and EligibleIndices be?



              Answer 2) -> The key for this could be: the combination of the UNIQUE IDENTIFIERs (UIDs) of TradingBasked and EligibleEquity (or EligibleIndex, respectively).



              Eg - situation as discussed in "Answer 1": if the UIDs are the attributes(EligibleEquity)TYPE, and (EligibleIndex)INDEX_NAME, respectively, then a combination of these (unique) values can serve as a UID of the intersection/junction. (-> See the keys of the HYPOTHETICAL... table in the attached Relational model.)



              enter image description here



              There is more to be considered, and I'm sure that there will be more questions. Let us know how you get on!






              share|improve this answer


























                0












                0








                0







                Before I attempt to answer your questions, just a couple of hints that may help
                you to create the perfect model :-) Bear with me.




                • When you construct an ERD, try and avoid "database" terminology such as:
                  primary key, foreign key, table, row. Instead, use the terms "entity", "relationship", "unique identifier", "instance".


                • Use singular nouns as entity names. When creating an entity, think about a SINGLE instance (of an entity). This may make it easier to find the correct cardinalities.


                • You can draw as many relationships as you like. However, only keep the relationships that make sense in your system (eg if there are 5 entities, and the relationships in your diagram make it look a bit like a pentagram inscribed into a 5-sided polygon, then there are - in all probability - too many relationships). The MANY side of a relationship will eventually be transformed into a foreign key (which we should not worry about when working at the ERD level).



                Now to your questions:



                Q0) However, is it possible to create a Many:Many relationship between ElibibleEquity and EligibleIndices if they are children to the TradeBasket?



                Answer 0) Yes. Just make sure that this really makes sense (see answer 1).



                Q1) To facilitate a relationship between EligibleEquity and EligibleIndices, what should the cardinalities should i adopt (red or purple - in relation to the ERD)?



                Answer 1) Find out, and use, whatever is correct!
                Does EACH EligibleEquity (potentially) use/contain ONE OR MORE EquitableIndices?
                AND: Is EACH EquitableIndex used/contained within ONE OR MORE EquitableEquities?
                -> If the answer to both of these questions is: YES, then model a many-to-many relationship. (This will require an "intersection" or "junction" later on -> see the HYPOTHETICAL... entity in the attached ERD.)



                enter image description here



                Q2) If the EligibleEquity and EligibleIndices should be mapped as multivalued entities of the TradingBasket, what would the primary key of the junction table between EligibleEquity and EligibleIndices be?



                Answer 2) -> The key for this could be: the combination of the UNIQUE IDENTIFIERs (UIDs) of TradingBasked and EligibleEquity (or EligibleIndex, respectively).



                Eg - situation as discussed in "Answer 1": if the UIDs are the attributes(EligibleEquity)TYPE, and (EligibleIndex)INDEX_NAME, respectively, then a combination of these (unique) values can serve as a UID of the intersection/junction. (-> See the keys of the HYPOTHETICAL... table in the attached Relational model.)



                enter image description here



                There is more to be considered, and I'm sure that there will be more questions. Let us know how you get on!






                share|improve this answer













                Before I attempt to answer your questions, just a couple of hints that may help
                you to create the perfect model :-) Bear with me.




                • When you construct an ERD, try and avoid "database" terminology such as:
                  primary key, foreign key, table, row. Instead, use the terms "entity", "relationship", "unique identifier", "instance".


                • Use singular nouns as entity names. When creating an entity, think about a SINGLE instance (of an entity). This may make it easier to find the correct cardinalities.


                • You can draw as many relationships as you like. However, only keep the relationships that make sense in your system (eg if there are 5 entities, and the relationships in your diagram make it look a bit like a pentagram inscribed into a 5-sided polygon, then there are - in all probability - too many relationships). The MANY side of a relationship will eventually be transformed into a foreign key (which we should not worry about when working at the ERD level).



                Now to your questions:



                Q0) However, is it possible to create a Many:Many relationship between ElibibleEquity and EligibleIndices if they are children to the TradeBasket?



                Answer 0) Yes. Just make sure that this really makes sense (see answer 1).



                Q1) To facilitate a relationship between EligibleEquity and EligibleIndices, what should the cardinalities should i adopt (red or purple - in relation to the ERD)?



                Answer 1) Find out, and use, whatever is correct!
                Does EACH EligibleEquity (potentially) use/contain ONE OR MORE EquitableIndices?
                AND: Is EACH EquitableIndex used/contained within ONE OR MORE EquitableEquities?
                -> If the answer to both of these questions is: YES, then model a many-to-many relationship. (This will require an "intersection" or "junction" later on -> see the HYPOTHETICAL... entity in the attached ERD.)



                enter image description here



                Q2) If the EligibleEquity and EligibleIndices should be mapped as multivalued entities of the TradingBasket, what would the primary key of the junction table between EligibleEquity and EligibleIndices be?



                Answer 2) -> The key for this could be: the combination of the UNIQUE IDENTIFIERs (UIDs) of TradingBasked and EligibleEquity (or EligibleIndex, respectively).



                Eg - situation as discussed in "Answer 1": if the UIDs are the attributes(EligibleEquity)TYPE, and (EligibleIndex)INDEX_NAME, respectively, then a combination of these (unique) values can serve as a UID of the intersection/junction. (-> See the keys of the HYPOTHETICAL... table in the attached Relational model.)



                enter image description here



                There is more to be considered, and I'm sure that there will be more questions. Let us know how you get on!







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered May 8 '17 at 4:53









                stefanstefan

                2,152139




                2,152139






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Database Administrators Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f168503%2frelationship-between-two-multi-valued-child-tables%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    ORA-01691 (unable to extend lob segment) even though my tablespace has AUTOEXTEND onORA-01692: unable to...

                    Always On Availability groups resolving state after failover - Remote harden of transaction...

                    Circunscripción electoral de Guipúzcoa Referencias Menú de navegaciónLas claves del sistema electoral en...