This document provides an understanding of database systems and their advantages and disadvantages. It also covers conceptual, logical, and physical modeling for Jet Airlines. The document includes entity relationship diagrams and relational data models.
Contribute Materials
Your contribution can guide someone’s learning journey. Share your
documents today.
Running head:DATABASE SYSTEM FOR JET AIRLINES Database System for Jet Airlines Name of the Student Name of the University Author’s note:
Secure Best Marks with AI Grader
Need help grading? Try our AI Grader for instant feedback on your assignments.
1DATABASE SYSTEM FOR JET AIRLINES Table of Contents Task 1:Understanding of Database.................................................................................................2 1.1Database System VS File Based System:...............................................................................2 1.1.1 Database System:............................................................................................................2 1.1.2 File Based System:.........................................................................................................2 1.2 Hierarchical, Network and Relational Models:.....................................................................3 1.3 Top-down and Bottom-up Approaches:................................................................................3 Task 2: Conceptual Modelling.........................................................................................................4 Task 3: Logical Modelling...............................................................................................................6 Task 4: Physical Modelling...........................................................................................................13 Create Database:........................................................................................................................13 Create Table:..............................................................................................................................13 Bibliography:.................................................................................................................................19
2DATABASE SYSTEM FOR JET AIRLINES Task 1:Understanding of Database 1.1Database System VS File Based System: 1.1.1 Database System: The database system is considered as the set of database management system and databases. The database system is for storing, fetching, updating and deleting data. Database systems are consisted of database software that allows the user to perform all the intended tasks. Database system handles both the operations and the data. Advantages:The database system is effective enough to control the data redundancy through its entities. There is minimum inconsistency in the database systems. If any change is made in the database, all the interrelated data will be changed. The quality of service is also better in the database systems. Disadvantages:The complexity of the database is a huge disadvantage. The execution of functions are complex than file based systems. The cost of the software and hardware makes it difficult to implement. Limitations:Without having prior knowledge of database systems, the user cannot store or retrieve data from a database system. 1.1.2 File Based System: The may be thought as a collection of computer programs which is capable of carrying out the programming services regarding the intentions of end user for accessing information. Each program has its own file which is maintained by that program itself. Advantages:The traditional file based systems are easy to access. The files remains in the central location physically, therefore establishing the connection is very easy. The file systems are very easy to understand. Disadvantages:Thefilesystemsareoutdatedandmostmodernframeworkand technologies do not support it. The file systems are very prone to cyber-attacks. As there is no proper security checks in the file based system other than server, the cyber-attacks can be done very easily.
3DATABASE SYSTEM FOR JET AIRLINES Limitations:Current frameworks does not support the file based systems. 1.2 Hierarchical, Network and Relational Models: Hierarchical Model:In terms of thehierarchical data model, a structure similar to the tree is implemented. The parent’s node has many children and these children can act like nodes. Only the one-to-many relations are available within hierarchical data model. Network Model:Network data model is developed using objects and relationships among theobjects.Thenetworkdatamodelisaveryscalableapproachtowarddatabase implementation.Theschemainthenetworkdatamodelisrepresentedthroughadata visualization where the acrs are relationship and objects are nodes. Relational Model:The set of relations within a database is presented through the relational model. The relations are the tables that holds the raw data. Each relation is connected to other relation or relations through relationships. Relations has constraint like primary key, foreign key, default, check and many more. Most modern day medium sized database are relations. These databases focuses on the interrelationship among the relations. 1.3 Top-down and Bottom-up Approaches: Top-Down:Top-Downispopularforgeneratingnewdatabases.Thedatabase development starts at logical level where the logical database is created. The information about the data is collected and structured. All the information collected at the logical and conceptual level is applied to the physical database implementation level. Advantages of Top-Down i.High-level view for all items ii.Data change can be monitored efficiently Drawbacks of Top- Down: i.Takes a lot of time to create the database ii.Each process should be done only in sequential manner
Paraphrase This Document
Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
4DATABASE SYSTEM FOR JET AIRLINES Bottom-Up:The bottom-up approach is most popular for database migration. In the bottom-up approach one physical database is migrated to another database environment. The migration can happen between different database management systems. Advantages of Bottom- Up: i.Developing new database from existing one effective and efficient ii.Can be done several time easily Drawbacks of Bottom-Up: i.The developers do not get high level view of the data Task 2: Conceptual Modelling Entity Identification:The database entities of Jet Airline are as following. i.Aircraft ii.Bookings iii.Cancelled iv.EmployeeJob v.Employees vi.Flights vii.Passengers viii.Payments Database ERD:
5DATABASE SYSTEM FOR JET AIRLINES Figure 4: Conceptual Data Model (Source: Created by Author)
6DATABASE SYSTEM FOR JET AIRLINES Task 3: Logical Modelling Normalize Jet Airline Database up to 3rd Normal Form:The database normalization process is referred to as the method of data management in a database. The normalization process is used for decomposing the database entities or tables. The decomposition allows the database to reduce data redundancy. It also helps the database to prevent malfunction or data corruption during data insertion, update or delete. First normal form:After collecting all the data, the developers put all the data in same table. This table has multivalued attributes and inconsistent data. Forconverting the database table intofirst normal form, all the multivalued attributes are to be converted into atomic valued attributes. All the values stored in the database should be of same data type such as if decimal is used for cost then all the values in the cost column must be of decimal data type. passenger ID passeng erName booki ngID bookin gDate flightIDorigi n cancella tionDat e aircraft ID modelNa me 1001Luke Leitch 101August 14, 2019 1001New jerse y August 15, 2019 101Airbus A380-80 0 102August 15, 2016 1002PerthNULL102Boeing 747-8 103August 16, 2013 1003Cair ns NULL103Boeing 747-400 As the above table has multivalued attribute for the booking related information for each customer, every multivalued columns are converted into atomic valued column. The following table is created to show that the all the multivalued attributes are converted into atomic values. passenger ID passeng erName booki ngID bookin gDate flightIDorigi n cancella tionDat aircraft ID modelNa me
Secure Best Marks with AI Grader
Need help grading? Try our AI Grader for instant feedback on your assignments.
7DATABASE SYSTEM FOR JET AIRLINES e 1001Luke Leitch 101August 14, 2019 1001New jerse y August 15, 2018 101Airbus A380-80 0 1001Luke Leitch 102August 15, 2016 1002PerthNULL102Boeing 747-8 1001Luke Leitch 103August 16, 2013 1003Cair ns NULL103Boeing 747-400 Second Normal Form:Second normal deals with the partial dependencies within the database. The partial dependency exists in a table when a non-key columns are dependent on another non-key attribute. Taken as an example, booking date and cancel date depends on the booking id. Same way the origin depends on the flight number. Therefore, two new tables are created named as booking and flight to exterminate the partial dependency. passengerIDpassengerName 1001Luke Leitch However, to connect the passenger table with the booking table, referential integrity constraint is used. The referential constraint allows the database to utilize the key attribute of one relation as a foreign-key attribute in another table. For connecting the passenger table with the booking table, the passenger table primary key is used as foreign key in booking table. As the flight table will also be created, flight number will also be utilized as foreign-key attribute within the booking relation. bookingIDpassengerIDbookingDateflightIDcancellationDate 1011001August 14, 20191001August 15, 2018 1021001August 15, 20161002NULL 1031001August 16, 20131003NULL
8DATABASE SYSTEM FOR JET AIRLINES The flight table will be as following. flightIDoriginaircraftIDmodelName 1001New jersey101Airbus A380-800 1002Perth102Boeing 747-8 1003Cairns103Boeing 747-400 Third Normal From:The third normal form is responsible for handling transitive dependency. The aircraft id, flight number and model name has transitive dependency among those. Booking id, flight number and origin has transitive dependency. The final tables look like as following. flightIDoriginaircraftID 1001New jersey101 1002Perth102 1003Cairns103 aircraftIDmodelName 101Airbus A380-800 102Boeing 747-8 103Boeing 747-400 bookingIDpassengerIDbookingDateflightIDcancellationDate 1011001August 14, 20191001August 15, 2018 1021001August 15, 20161002NULL 1031001August 16, 20131003NULL passengerIDpassengerName 1001Luke Leitch
9DATABASE SYSTEM FOR JET AIRLINES
Paraphrase This Document
Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
10DATABASE SYSTEM FOR JET AIRLINES Entity Relationship Diagram: Figure 5: Normalized Entity Relationship Diagram (Source: Created by Author) Relational Data Model: Passenger passengerIDpassengerNameaddresssphoneNumber 1001Luke Leitch43 Settlement Road COONGULLAVIC 3860 (03) 5306 6235 1002Max Moriarty63 Mandible Street(07) 4509 9409
11DATABASE SYSTEM FOR JET AIRLINES GUNPOWDER QLD 4825 1003Hugo Wilkin10 Main Street BOOLGUN SA 5330 (08) 8771 4887 1004Ashton Ferguson60 Boughtman Street COATESVILLE VIC 3165 (03) 9529 5909 1005Jonathan Quong98 Barnett Street TULLAH TAS 7321 (03) 6283 2742 Employees empIDempNameaddresssalary 1001Zac Forrest3 Weemala Avenue COMOBELLA NSW 2820 2150.00 1002Aaron Dwyer2 Adavale Road GOULBURNNSW 2580 1780.00 1003James Macandie59 Walters Street KOONDA VIC 3669 3500.00 1004Sam Ida34 Cofton Close CLOUDSCREEK NSW 2453 2560.00 1005Joel Wormald74 Sunnyside Road BOOKPURNONG SA 5333 2700.00 Aircraft aircraftIDmodelNamemanufacturer 1001Airbus A380-800Airbus Corporate Jets
12DATABASE SYSTEM FOR JET AIRLINES 1002Boeing 747-8Boeing 1003Boeing 747-400Boeing Flights flightIDaircraf t origindestinatio n flightDatedepartureTim e arrivalTim e 10011001New jersey Perth12/01/201912:30:0018:30:00 10021002PerthCairns18/08/201812:45:0021:15:00 10031003CairnsPerth27/02/201918:00:0023:45:00 EmployeeJob flightemployeeemployeeJob 10011001Pilot 10021002Air Hostess 10031003Pilot 10021004Air Hostess 10011005Pilot Bookings bookingI D fligh t passengerI D bookingChar ge bookingDa te bookingTi me passengerQu an 100110011001150.0012/04/201911:58:001 100210021002150.0018/04/201917:59:003 100310031003150.0027/04/201908:27:001
Secure Best Marks with AI Grader
Need help grading? Try our AI Grader for instant feedback on your assignments.
13DATABASE SYSTEM FOR JET AIRLINES 100410041004150.0012/04/201911:58:002 100510051005150.0018/04/201917:59:001 Payments paymentIDbookingpaymentDat e paymentTimetaxtotalPaymen t 1001100112/04/201912:00:0018%177.00 1002100218/04/201918:00:0018%177.00 1003100327/04/201908:30:0018%177.00 1004100412/04/201912:00:0018%177.00 1005100518/04/201918:00:0018%177.00 Cancellation booking_idcancellationDat e cancellationTim e finereasonStatus 100212/04/201912:58:0050.00OtherRefunded 100318/04/201918:59:0050.00OtherRefunded Task 4: Physical Modelling Create Database: CREATE DATABASE IF NOT EXISTS JetAirline DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci; USE JetAirline; Create Table: CREATE TABLE aircraft ( aircraftID int(11) NOT NULL PRIMARY KEY,
14DATABASE SYSTEM FOR JET AIRLINES modelName varchar(150) NOT NULL, manufacturer varchar(150) NOT NULL ); CREATE TABLE employees ( empID int(11) NOT NULL PRIMARY KEY, empName varchar(150) NOT NULL, address varchar(150) NOT NULL, salary decimal(12,2) NOT NULL ); CREATE TABLE flights ( flightID int(11) NOT NULL PRIMARY KEY, aircraftID int(11) NOT NULL, origin varchar(30) NOT NULL, destination varchar(30) NOT NULL, flightDate DATE NOT NULL, departureTime time NOT NULL,
15DATABASE SYSTEM FOR JET AIRLINES arrivalTime time NOT NULL, FOREIGN KEY (aircraftID) REFERENCES Aircraft(aircraftID) ); CREATE TABLE EmployeeJob ( flight int(11) NOT NULL, employee int(11) NOT NULL, employeeJob varchar(20) NOT NULL, CONSTRAINT PK_EmployeeJob PRIMARY KEY (flight,employee), FOREIGN KEY (flight) REFERENCES Flights(flightID), FOREIGN KEY (employee) REFERENCES Employees(empID) ); CREATE TABLE passengers ( passengerID int(11) NOT NULL PRIMARY KEY, passengerName varchar(150) NOT NULL,
Paraphrase This Document
Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
16DATABASE SYSTEM FOR JET AIRLINES addresss varchar(150) NOT NULL, phoneNumber varchar(15) NOT NULL ); CREATE TABLE bookings ( bookingID int(11) NOT NULL PRIMARY KEY, flight int(11) NOT NULL, passengerID int(11) NOT NULL, bookingCharge decimal(12,2) NOT NULL, bookingDate DATE NOT NULL, bookingTime time NOT NULL, passengerQuan int(11) NOT NULL, FOREIGN KEY (flight) REFERENCES Flights(flightID), FOREIGN KEY (passengerID) REFERENCES Passengers(passengerID) );
17DATABASE SYSTEM FOR JET AIRLINES CREATE TABLE Cancellation ( bookingID int(11) NOT NULL PRIMARY KEY, cancellationDate DATE NOT NULL, cancellationTime time NOT NULL, fine decimal(12,2) NOT NULL, reason varchar(150) NOT NULL, status varchar(150) NOT NULL, FOREIGN KEY (bookingId) REFERENCES bookings(bookingID) ); CREATE TABLE payments ( paymentID int(11) NOT NULL PRIMARY KEY, booking int(11) NOT NULL, paymentDate DATE NOT NULL, paymentTime time NOT NULL, tax int(11) NOT NULL, totalPayment decimal(12,2) NOT NULL, FOREIGN KEY (booking) REFERENCES Bookings(bookingID)