1.-For Example Below We Have One Big Table. Put The Table in Normalized Form
1.-For Example Below We Have One Big Table. Put The Table in Normalized Form
SID = Student ID, S_Name= Student Name,CID = Course ID, C_Name = Course Name,
PK = SID,CID
Put the above table in 2NF:
GRADE (SID*,CID*,grade)
STUDENT (SID,S_name)
GRADE (SID*,CID*,grade)
STUDENT (SID,S_name)
Final set of Tables with meaningful names and PKs and FKs:
2.- For the example below we have one big table. Put the table in normalized form.
PID = product id, P_Desc =Product Name, P_Price = Product Price, Qty = Quantity
Purchased Note: 7, 5, 4 means three Product IDs. Similarly, 1, 1, 5 means three Quantities.
PK = OID,PID
Put the above table in 2NF:
Final set of Tables with meaningful names and PKs and FKs:
3.- For the example below we have one big table representing a company’s data on their
projects and employees. Put the table in normalized form.
EID→DID PID→Pname
PK = EID, PID
Put the above table in 2NF:
Final set of Tables with meaningful names and PKs and FKs:
PK = PID, OID
Final set of Tables with meaningful names and PKs and FKs:
The Gill Art Gallery wishes to maintain data on their customers, artists and paintings. They
may have several paintings by each artist in the gallery at one time. Paintings may be
bought and sold several times. In other words, the gallery may sell a painting, then buy it
back at a later date and sell it to another customer.
This report is used by the department managers to update the prices that are displayed in
the grocery store for these products.
10.- Normalize up to 3NF the relation R (A, B, C, D, E, F) in which the following functional
dependencies are given:
● E→B
● C→A
● C, E ⇒ F
● A →D
R2 (C, A*);
R3 (A, D);
R4 (E, B);
11.- Normalize up to 3NF the relation R (A, B, C, D, E) in which the following functional
dependencies are given:
● C, E ⇒ D
● D→B
● C →A
R2 (D, B);
R3 (C, A);
Entity-relationship model:
● For each department: department number (unique), budget, and the number of the
employee who is the department manager (unique).
● For each employee: employee number (unique), current project number, office
number, personal telephone number, name of each job that has been held, description of
each job, and amount and range of dates of each salary which he has received for each of
these works.
● For each office: office number (unique), area in m2, and numbers (unique) of all the
phones in this office.
----------------------------
● Para cada empleado: número de empleado (único), número de proyecto actual, número
de oficina, número de teléfono personal, nombre de cada trabajo que ha tenido, descripción
de cada trabajo y cantidad y rango de fechas de cada salario por el que ha recibido cada
una de estas obras.
● Para cada oficina: número de oficina (único), área en m2 y números (únicos) de todos los
teléfonos de esta oficina.
14.- Indicate the normal form of the following relationships and normalize them if necessary:
1NF
2NF
3NF
16.- An enterprise works with the following sheet:
As you can see, a project can have many customers and a customer can have many
projects. Every project has a single person in charge (and obviously that employee may be
in charge of many projects).
Como puede ver, un proyecto puede tener muchos clientes y un cliente puede tener muchos
proyectos. Cada proyecto tiene una sola persona a cargo (y obviamente ese empleado
puede estar a cargo de muchos proyectos).
1NF
2NF
3NF
17.- A shop rents video games. They work with a sheet with the following fields:
RENT (Videogame id, Title, Copy number, Customer num, Customer name, Customer
phone number, rent date, rent number days)
● A student must be enrolled in a single career (and maybe he/she is not enrolled in all
the subjects of that career).
● A professor teaches a concrete subject (and he/she can teach many subjects).
-----------------------------
● Un estudiante debe estar matriculado en una sola carrera (y tal vez no esté matriculado
en todas las asignaturas de esa carrera).