Database Management System | Report

Verified

Added on  2022/08/14

|13
|767
|15
AI Summary
tabler-icon-diamond-filled.svg

Contribute Materials

Your contribution can guide someone’s learning journey. Share your documents today.
Document Page
Running head: DATABASE MANAGEMENT SYSTEM
DATABASE MANAGEMENT SYSTEM
Name of the Student
Name of the University
Author Note
tabler-icon-diamond-filled.svg

Secure Best Marks with AI Grader

Need help grading? Try our AI Grader for instant feedback on your assignments.
Document Page
1DATABASE MANAGEMENT SYSTEM
Table of Contents
ERD.................................................................................................................................................2
Normalization..................................................................................................................................3
First Normal Form.......................................................................................................................3
Second Normal Form...................................................................................................................3
Third Normal Form......................................................................................................................4
Form.................................................................................................................................................6
Tables...............................................................................................................................................6
Queries.............................................................................................................................................9
Report............................................................................................................................................11
Bibliography..................................................................................................................................12
Document Page
2DATABASE MANAGEMENT SYSTEM
ERD
Entity Relationship Diagram represents the real world objects as entities and relationship
between them. Every entity has some attributes related to the entity itself. The relationship used
in the diagram are either one to one, one to many, zero to many or many to many. The below
diagram represents the Entities of the Airline system. The ERD is normalized in the later section
of the Report up to Third normal form.
Document Page
3DATABASE MANAGEMENT SYSTEM
Figure 1: Entity Relationship Diagram
Source: Created by author
Normalization
Normalization is the process of simplifying the Tables and relationship between them. It
starts from the first normal form to the second normal form.
First Normal Form
According to the first normal form of the normalization, the tables must have all atomic
values and there are no repeating values. All the attributes are related to their entities and
relationship has been established according to the scenario.
Second Normal Form
Second Normal form says that the relationship should be in the first normal form and all
the non-key attributes should be fully functionally dependent on the key attribute of the table. In
the current scenario, table airplanes, flights and reservation are not in second form as, the type
and capacity of the airplane does not depends on the airplane no. hence; it will require an extra
sets of attribute which will be a new entity. In flight table, the flight date does not depends on the
flight no and in reservation table ticket description and status does not depend on the booking id.
Similarly the breakups of the table have been made to normalize the relationship into second
normal form. Below an example of the dependency diagram for the second normalized from has
been shown:
tabler-icon-diamond-filled.svg

Secure Best Marks with AI Grader

Need help grading? Try our AI Grader for instant feedback on your assignments.
Document Page
4DATABASE MANAGEMENT SYSTEM
Figure 2: Dependency diagram for Ticket table
Source: Created by author
Figure 3: Dependency diagram for Type table
Source: Created by author
Figure 4: Dependency diagram for Reservation table
Source: Created by author
Third Normal Form
The Third normal form says that the table should satisfy the second normal form and it
should not have any transitive functional dependencies. In this scenario, the transitive functional
dependency is present in the reservation and flight leg table s where the Flight no. identified by
the leg no. and booking id both, which creates a loop in relationship between reservations, fight
and flight leg table. However, the correct relationship dependency will be that when the leg no. is
identified by the booking id and flight no. is identified by the leg no. where the flight no for a
Document Page
5DATABASE MANAGEMENT SYSTEM
booking will be identified through the flight leg table. The final normalized up to third normal
form relationship has been shown in the figure 5.
Figure 5: Normalized Entity relationship Diagram
Source: created by author
Document Page
6DATABASE MANAGEMENT SYSTEM
Form
Tables
Airplane Table
Airports Table
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
7DATABASE MANAGEMENT SYSTEM
Customer Table
FlightLeg Table
Flights Table
Document Page
8DATABASE MANAGEMENT SYSTEM
Reservation Table
Ticket Table
Document Page
9DATABASE MANAGEMENT SYSTEM
Type Table
Queries
SELECT
SELECT Airplanes.AirplaneNo, Airplanes.ManufacturingCompany, Airplanes.TypeName,
Type.Capacity
FROM Type INNER JOIN Airplanes ON Type.TypeName = Airplanes.TypeName;
tabler-icon-diamond-filled.svg

Secure Best Marks with AI Grader

Need help grading? Try our AI Grader for instant feedback on your assignments.
Document Page
10DATABASE MANAGEMENT SYSTEM
JOIN
SELECT Customer.CustomerID, Customer.Name, Customer.Title, Reservation.FlightDate,
Flights.FlightNo, Flights.Destination, FlightLeg.DepartureAirport
FROM Flights INNER JOIN (FlightLeg INNER JOIN (Customer INNER JOIN Reservation ON
Customer.CustomerID = Reservation.CustomerID) ON FlightLeg.LegNo = Reservation.LegID)
ON Flights.FlightNo = FlightLeg.FlightNo;
AGGREGATE
SELECT Flights.FlightNo, Flights.Destination, Count(FlightLeg.LegNo) AS CountOfLegNo
FROM Flights INNER JOIN FlightLeg ON Flights.FlightNo = FlightLeg.FlightNo
GROUP BY Flights.FlightNo, Flights.Destination;
Document Page
11DATABASE MANAGEMENT SYSTEM
Report
All Customers Flight Report
Document Page
12DATABASE MANAGEMENT SYSTEM
Bibliography
Coronel, C. and Morris, S., 2016. Database systems: design, implementation, & management.
Cengage Learning.
Gaikwad, A.S., Kadri, F.A., Khandagle, S.S. and Tava, N.I., 2017. Review on Automation Tool
for ERD Normalization. Int. Res. J. Eng. Technol, 4(2), pp.1323-1325.
Letkowski, J., 2014. Challenges in Database Design with Microsoft Access. Journal of
Instructional Pedagogies, 15.
Rossi, B., 2014. Entity relationship diagram.
chevron_up_icon
1 out of 13
circle_padding
hide_on_mobile
zoom_out_icon
[object Object]

Your All-in-One AI-Powered Toolkit for Academic Success.

Available 24*7 on WhatsApp / Email

[object Object]