• Non ci sono risultati.

Database design Database design Tania Cerquitelli

N/A
N/A
Protected

Academic year: 2021

Condividi "Database design Database design Tania Cerquitelli"

Copied!
4
0
0

Testo completo

(1)

DB M G

Database design

Database design

Tania Cerquitelli

(2)

DB M G

Exercise: Database design

The bank has a variety of branches throughout the Italian area. Each branch is identified by a code and it is characterized by the name, the address and the telephone number.

The bank's customers are characterized by Social Security Number (SSN), full name (name and surname), date of birth, address and email. For each customer the database stores the list of branches in which he/she has at least a bank account. Each customer may have different bank accounts in the same branch and/or different bank accounts in different branches.

Each area manager is identified by an alphanumeric code and he/she is characterized by name, email, phone number and mobile phone number (if available). For each area manager the title of the highest obtained degree and the date when he/she received that title are also known.

(3)

DB M G

Exercise: Database design

Each branch organizes some meetings periodically. Each meeting is identified by a code and it is characterized by the branch at which it takes place, the meeting date and time, and list of addressed topics. The meetings are classified as ordinary and extraordinary meetings. For extraordinary meetings the motivation for which the meeting was called is stored.

A report is written at the end of each meeting. Each report is identified by a code and it is characterized by the meeting for which it was written, a brief description and the meeting duration.

The cleaning of the branch premises is carried out in specific days of the week. For each branch the database stores the days of the week on which the cleaning activity takes place and the corresponding time slot (i.e., start hour and end hour).

(4)

DB M G

Exercise: Database design

Each branch manages different savings plan. Each savings plan is identified by a code that is unique within \textit{all} savings plan referring to the same branch and it is characterized by the subscribing customer and a brief description.

Each savings plan is associated with a set of deposits. Each deposit is identified by a code unique within the corresponding savings plan and it is characterized by the due date of payment and the corresponding amount.

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 than one area manager at a time, while each area manager can manage more branches in the same time period.

Riferimenti

Documenti correlati

Scavo 2014 della necropoli romana di Porta Nocera a Pompei: il settore 26 OS William Van Andringa – Thomas Creissen – Henri Duday.. Autori della relazione sintetica: Thomas

In general, Word is not a good solution for writing scientific texts, although the LeanMath editor developed by Gardner (2014) allows visually impaired people to access to the

The same kitchen tool can be exploited in different lessons, and many kitchens tools can be exploited in a given lesson.. • People enrolled at the school are identified by

Cooking type and size are known for pots, while blade length and breadth are known for knifes... DB

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

■ class (course_id, title, dept_name, credits, sec_id, semester, year, building, room_number, capacity, time_slot_id).. ■

The case for optimism partly rests on our expectation that the personal saving rate can decline a bit further this year, thanks to the increased in household wealth, to