• Non ci sono risultati.

DBG Database designDatabase designTania CerquitelliTania Cerquitelli

N/A
N/A
Protected

Academic year: 2021

Condividi "DBG Database designDatabase designTania CerquitelliTania Cerquitelli"

Copied!
18
0
0

Testo completo

(1)

DB M G

Database design

Database design

Database design

Tania Cerquitelli

Tania Cerquitelli

(2)

DB M G

Exercise: Cooking school

Design a database for the management of some activities for a cooking school.

• Cooking teachers work for the school. For each teacher the SSN, name, surname, name of the school where he/she graduated, e-mail address and phone numbers must be recorded.

• Kitchen tools are identified by a code and characterized by the material type and a brief description. Kitchen tools are classified in pots, knifes, robot, and kitchen units. Cooking type and size are known for pots, while blade length and breadth are known for knifes.

(3)

DB M G

Exercise: Cooking school

• Kitchen tools are identified by a code and characterized by the material type and a brief description. Kitchen tools are classified in pots, knifes, robot, and kitchen units. Cooking type and size are known for pots, while blade length and breadth are known for knifes.

(4)

DB M G

(5)

DB M G

Exercise: Cooking school

• Several cooking courses are given at the school. A cooking course is uniquely identified by a code and the level (e.g., beginner, intermediate, advanced).

Many editions of the same cooking course can be given. For each edition, the starting date, end date, cost, and kitchen in which the course is given have to be stored. The same course can be given more times in the same year and in several, possibly different, kitchens. For each kitchen, the room number, floor, and number of cooking desks must be recorded.

(6)

DB M G

(7)

DB M G

(8)

DB M G

(9)

DB M G

(10)

DB M G

(11)

DB M G

Exercise: Cooking school

• Cooking courses consists of lessons. Every lesson is identified by a code, that is unique among the lessons of that course, and is characterized by its starting time and its duration. For each lesson, the teacher and the list of exploited kitchen tools are also known. The same kitchen tool can be exploited in different lessons, and many kitchens tools can be exploited in a given lesson.

(12)

DB M G

(13)

DB M G

(14)

DB M G

Exercise: Cooking school

• People enrolled at the school are identified by their SSN. For each person, the name, surname, date of birth, address, telephone number and e-mail address (if available) are known. For each person, the list of cooking course lessons he/she attends is also known. A person can attend different cooking course lessons, and a cooking course lesson can be attended by many people.

(15)

DB M G

Exercise: Cooking school

• Several recipes can be presented during a cooking course lesson. Each recipe is characterized by a unique code, the level, a description, and preparation and cooking times. For each recipe, the list of required ingredients and the corresponding quantity must be stored. Recipes can be classified in dough and pastry, hors d'oeuvre, fish and meat, vegetables, and dessert. For dessert recipes, the type (e.g., cookies, cake) and the pastry used to make it are also known.

(16)

DB M G

(17)

DB M G

(18)

DB M G

Riferimenti

Documenti correlati

The IUPAC provisional names

Cytokinin regulates the activity of reproductive meristems, flower organ size, ovule formation, and thus seed yield in Arabidopsis.. Cross talk between the sporophyte

For each beauty treatment purchased by a customer, the date on which it is given, the start and end time, the beautician performing the treatment and the social security number of

For each branch the database stores the list of its area manager over time with the corresponding period of time (start and end date). Please note that a branch can not have more

Trigger to manage reorder in an inventory stock when the stocked quantity of a product goes below a given threshold. a new order for the product should be

Trigger to manage reorder in an inventory stock when the stocked quantity of a product goes below a given threshold. a new order for the product should be

At the end of this research, we may dare to make some considerations. First of all, we should note that, notwithstanding the problems and shortcomings of the Chinese

Kagan’s dissent insisted on the meaning of stare decisis doctrine. She maintained that even Justices’ belief that a case was wrongly decided cannot be enough for