Professional Documents
Culture Documents
(ER - Normalization) مسائل مهمة
(ER - Normalization) مسائل مهمة
Customer
Manager Accountant
Department
3. Identify the entities, attributes, relationships, and cardinality ratios in the following E/R
Diagram.
The Entities are Attributes Cardinality ratios:
Worker, Department, worker has: Name, workerID and Address. Worker and Department: M : 1
Project, Order Supplier Project has: Name and ProjectID Worker and Project: M:M
Order has: OrderID, orderdate delivery date Worker and Order: M:M
Supplier has: Name and SupplierID Order and Supplier: M:M
Department has: Name, Department ID and
Address.
1NF
Child_ID Name Nursery_No Nursery_name Nursery Location Courses
1 Yassin E. 12 DMLS Mansoura Draw
1 Yassin E. 12 DMLS Mansoura P.E
1 Yassin E. 12 DMLS Mansoura Math
2 Ahmed M. 12 DMLS Mansoura Eng.
2 Ahmed M. 12 DMLS Mansoura Art
3 Menna T. 19 WIS Alexandria Rel.
3 Menna T. 19 WIS Alexandria Hist
3 Menna T. 19 WIS Alexandria Arab.
4 Perla E. 14 Glory Cairo Social
4 Perla E. 14 Glory Cairo Science
2NF 3NF
Child Name Nurse Nursery_name Nursery
_ID ry_No Location
Child Name Nurse
1 Yassin 12 DMLS Mansoura _ID ry_No
4 Perla E. 14
Child_ID Courses
1 Draw Nursery_ Nursery_name Nursery
No Location
1 P.E
12 DMLS Mansoura
1 Math
2 Eng. 19 WIS Alexandria
5. ““Marassi Hotel needs to create a database to store information about their Guests”. First step, each Guest’s
personal details (name, Credit card, City, and ID) are recorded in the database, then they are given a Guest
number. Each Guest will register in a specific activity (Jet Ski, Gym, Pool, and Spa). In each activity, there are
a number of Managers and Assistants. A guest will be treated by one Manager and several Assistants over the
time of their stay, and each Manager and Assistant may be involved with several Guests at any given time.”
1. Identify the entities, attributes, relationships, and cardinality ratios from the description.
The Entities are Attributes Cardinality ratios:
Guests, Activity, Manager, Assistants Guest has: Name, credit, city, ID. Activity and Guest: 1:M
activity has a Name (which can be Jet Activity and instructor: 1:M
Ski, Gym, Pool, and Spa). Activity and professor: 1:M
Managers and Guest: 1:M
Assistant and Guests: M:M
2. Draw an entity-relationship diagram showing the items you identified.
Guest
Activity
6. Normalize this table to the 3 NF
Company_ID Name Account_No Account_Type Location Products
1 Samsung 52002 Permanent Korea Mobiles, T.V, Tabs
2 Sony 52002 Permanent Japan Laptops, Smart phones
3 LG 93201 Temporary Korea Notebooks, DVD, Dish washers.
1NF
Company_ID Name Account_No Account_Type Location Products
1 Samsung 52002 Permanent Korea Mobiles
1 Samsung 52002 Permanent Korea T.V
1 Samsung 52002 Permanent Korea Tabs
2 Sony 52002 Permanent Japan Laptops
2 Sony 52002 Permanent Japan Smart phones
3 LG 93201 Temporary Korea Notebooks
3 LG 93201 Temporary Korea DVD
3 LG 93201 Temporary Korea Dish washers
2NF
ID Name No Type Location
3NF
1 Samsung 52002 Permanent Korea
ID Name No. Location