MHB Modeling Relationships in a Supermarket: ER Model with Cardinalities

  • Thread starter Thread starter mathmari
  • Start date Start date
  • Tags Tags
    Model
AI Thread Summary
In a supermarket, each employee is associated with a unique employee number, name, address, and department, with each employee belonging to exactly one department. Departments have names, manage employees, and offer various items, which can be found in multiple departments. Each item has specific attributes, including description, supplier, sales price, and unique article numbers assigned by both the supplier and the supermarket. Suppliers provide items to the supermarket and have their own attributes, such as name, address, and delivery prices, with each item sourced from a single supplier but potentially at varying prices. The discussion centers on creating an ER model to represent these relationships and their cardinalities, with a focus on defining key attributes.
mathmari
Gold Member
MHB
Messages
4,984
Reaction score
7
Hey! 😊

In a supermarket, there are the following relationships: For each employee (Angestellter), there are employee numbers (AngNr), last name (Name), first name (Vorname), address (Adresse) and department (Abteilung) known. Each employee works in exactly one department. Of each department knows their name (Name), their employees (Angestellte), the responsible manager (Manager) and the items (Artikel) offered.
An item can be offered in several departments. Description (Bezeichnung), supplier (Lieferant), sales price (Verkaufspreis) and an article number (Artikelnummer) assigned by the supplier as well as by the supermarket. From each supplier the name (Name), address (Adresse) and items (Artikel) delivered to the supermarket with delivery prices are known. An article is supplied by exactly one supplier, but can be supplied at different prices.

Represent these relationships in an ER model with cardinalities and define suitable ones key attributes.Does this mean that we have to make a graph with how these attributes are related ? :unsure:

Do we have the attributes employee, department, article, supplier ? :unsure:
 
Last edited by a moderator:
Physics news on Phys.org
So far I have done the following :
1643740958824.png


Is that correct so far? :unsure:
 
Last edited by a moderator:

Similar threads

Back
Top