Can new entity of many-to-many relationship generate new entity?
-
Relationship between Item entity and Supplier entity is many-to-many, then this relation generates a new entity called Purchasing. Then the relationship between Purchasing entity (new ...show more
-
Answer:
I don't know what people are learning these days, but a many-to-many relationship used to be considered nearly worthless in a database/application design. The relationship between two entities almost always carries extra information so that an intermediate entity can be defined that is one-to-many with both side of the original many-to-many relationship. A line item on a purchase order, a where-used item in a bill-of-materials database, and enrollment entry in a student information system are all examples. In your case, the intermediate might be an "approved supplier" entity that connects each item in inventory to a single supplier. If nothing else, this design removes some dual maintenance of a list of items in each supplier entity and a list of items in each supplier entity. Adding an item never creates a supplier and adding a supplier never creates an item. Instead, when both exist, you can add an approved supplier entity that says you may order a particular entity from a particular supplier. Extra information that the approved supplier entity/object/record/tuple might carry is "who authorized this vendor for this item, and when" fields. Maybe there are effective dates or status information as well so that reporting on past orders can be done without allowing new purchases from a vendor who has discontinued a particular product or gone out of business.
2TGUVOTTKPSX6HJJ3QFDPOJS7M at Yahoo! Answers Visit the source
Related Q & A:
- How many cops are there in New York city?Best solution by nyc.gov
- Can you have too many ETF's in portfolio?Best solution by Yahoo! Answers
- How can you see how many people blocked you on Myspace?Best solution by Yahoo! Answers
- How many foot pounds do i new to tighten the spark plaugs on my 01 neon?Best solution by Yahoo! Answers
- How can I see how many words I've typed?Best solution by libroediting.com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.