You are on page 1of 1

Suppose your company takes orders for its products, which are supplied to your company

by vendors. You want to create a relational database of this information. Discuss the
relationship between orders and products and between products and vendors. What tables
would you create for this database, and what would you include in these tables?
Ans: Vendor Table, Order Table, and Product Table are three entities that will be included in this
entity connection diagram. We will also build a data flow diagram.

Consider the case where I will arrange the items at different times; in this case, there


will moreover be numerous orders for the same items; once more, inside each arrange, I
will arrange N assortment of items; as a result, the relationship between both the items and
orders will be N-N; within the case where I will arrange the items as it were once, the
relationship between both the items and orders will be N-1; in this case, I have expected that in
that single arrange, I have requested different numbers of products.

Presently, let us assume that each merchant has the capability of serving us different items  I


have requested those items from a single merchant, in which case the relationship between both
the items and the sellers would be N-1; in any case, in case I put orders from diverse sellers, the
relationship between both the items and the sellers would be N-N; once more, on the off chance
that I put orders from numerous providers, the relationship between both the items and
the merchants would be N-1.

Allow me to explain three tables in more detail.

Buy Arrange Tables: The over table will contain all of the subtle elements of


a particular arrangement or different qualities; for illustration, the arrange id, the arranged date,
the item related to the arrange, the seller who provided the item with the arrange, and
the client who set the arrange, among other things.

Various properties such as the Vendor ID, company name, contact information, and address will
be included in the Vendor tables.

For illustration, on the off chance that I incorporate a seller associated with this item within


the item tables, at that point maybe this vendor data is included within the item tables as
a remote key. For illustration, on the off chance that I incorporate a seller related to this product,
then maybe this merchant information is included within the item tables.

You might also like