Database Term Project
Database Term Project
Student’s Name
Course Name
Professor’s Name
Date
2
The initial entities include: Pilot ID, First Name, Last Name, Job Title, Salary, Airline ID,
the PK and other non-key attributes within a table. For any relation R, attribute Y is
functionally dependent on attribute X (usually the Primary Key), if for every valid
referred to as the dependents. This is because AirlineID determines all the other
entities to the right. All the entities to the right depend on the AirlineID entity which is
3. One-to-Many relationship
This is a relationship where each entry in one table may be linked to one or more records
in the other table. In our case database for example, One Airline with One Airline ID can
Normalization is the branch of relational theory that provides design insights. It is the
Here, only single values are permitted at the intersection of each row and column; hence,
To normalize a relation that contains a repeating group, remove the repeating group and
In the PilotAirlines table the repeating group is the Airline information which is
removed.
Identify the PK for your new table. The PK must uniquely identify the attribute
After removing all the attributes you are left with Pilot Airline table.
For the second normal form, the relation must first be in 1NF. The relation is
automatically in 2NF if, and only if, the PK comprises a single attribute.
When examining the PilotAirline table, we see that not all the attributes are fully
dependent on the Primary Key; specifically, all Airline information. The only
Identify a new table that contains the Airline information and identify its PK. The
To be in third normal form, the relation must be in second normal form. Also all
5. Pilot Table
CREATE TABLE PILOT TABLE AS SELECT PILOT ID, F NAME, L NAME, JOB TITLE,
PilotAirline Table
CREATE TABLE PILOTAIRLINE TABLE AS SELECT PILOT ID, AIRLINE ID FROM REPORT
TABLE;
Airline Table
CREATE TABLE AIRLINE TABLE AS SELECT AIRLINE ID, N PLANES, N ROUTES, N PILOTS
References
9
Ordonez, C. (2005). Integrating K-means clustering with a relational DBMS using SQL. IEEE
Mohan, C. (1993). IBM's relational DBMS products: features and technologies. ACM SIGMOD
Record, 22(2), 445-448.
Chang, S. K., Deufemia, V., Polese, G., & Vacca, M. (2007). A normalization framework for
1666-1679.
Solutions, 50-69.