Question

In: Computer Science

My SQL Data Model Delta Airlines wants to track certain information about its fleet of planes....

My SQL Data Model

Delta Airlines wants to track certain information about its fleet of planes. Delta’s planes go in for servicing and checks every 6 months. These checks are conducted by trained maintenance engineers. During this process there can be one or several issues related to the plane that are identified and noted. Delta wants to track information about the planes, the issues identified with the plane and the maintenance engineer who has identified these issues.

Engineers may identify more than one issue in a plane inspection. Every issue has an issue code and description. As issues are identified by engineers, they are logged. A place can have multiple issues associated with it and multiple planes can have similar issues. When an engineer identifies an issue with the place, the or she identifies the issue, the sub-system of the plane it is associated with and the date and time is was identified with the plane. Multiple engineers may work on a plane inspection but an engineer is assigned to a single plane inspection at a time.

Delta wants to track the following information about the plane, the make, the model, the acquired date, the supplier organization, its last service date and the last maintenance engineer. Delta also wants to track information about the issue including the date the issue was identified, a description of the issue and other details that are deemed pertinent. Information about the maintenance engineer are also recorded including their name, the date/time they started work, the date/time they stopped work, their contact information and other details about the employee.

Solutions

Expert Solution

If you are using a Linux/Mac machine then you can use the terminal to log in or else you can use the MYSQL workbench in windows

Enter "mysql -u {username} -p" and then in the password prompt enter the password

inside the mysql prompt you can follow the steps below to create a database create multiple tables to store all the data and we can connect the tables to one another for better accessibility.

1.create database DELTA_PLANES;

2.use DELTA_PLANES; //This is to tell mysql engine that we are using this database

3.create table Employee(Emp_no int primary key,Emp_name varchar(30),Salary int,Mob_no int(10),Address varchar(40));

This creates table Employee to store their detail.

Here primary key is a constraint which allows only unique values in that particular column and cannot be null.int refers to the datatype which is integer and varchar refers to character but it is variable i.e if we utilise less space than it is indicated when the table is create then the memory not utilised is deallocated.

4.create table Planes(Plane_no int primary key,Plane_name varchar(30),Model varchar(20),Supplier varchar(30),last_service date,Emp_assigned varchar(30));

This creates a table Planes to store all the details of the plane such as name,plane_no,model,etc.

5.create table Issue(Plane_no int primary key,Issue varchar(30),Description varchar(150),Emp_Assigned varchar(30),started_work date,stopped_work date,Emp_No int,foreign key(Plane_no) references Planes(Plane_no),foreign key(Emp_No) references Employee(Emp_no));

This create a table Issue to keep track of the Issue,its description and the employee assigned,etc.

One of the thing to notice here is the foreign key constraint which connects column Emp_no and Plane_no in Issue table to the Emp_no and Plane_no column in the Employee table and Planes table respectively.

We can then insert data into the table using "insert into {tablename} values(args)" where the number of arguments should be equal to the no of columns

We can also access data from the database using select command ex: "select * from {tablename}" fetches all the data from the table.


Related Solutions

Midwest AIRLINES (MWA) is planning to expand its fleet of jets to replace some old planes...
Midwest AIRLINES (MWA) is planning to expand its fleet of jets to replace some old planes and to expand its routes. It has received a proposal to purchase 112 small jets over the next 4 years. What annual net revenue must each jet produce to break even on its operating cost? The analysis should be done by finding the EUAC for the 10-year planned ownership period. MWA has a MARR of 12%, purchases the jet for $22 million, has operating...
My assignment requires the perfect hashed data structure with about 750 nodes containing information about tickets...
My assignment requires the perfect hashed data structure with about 750 nodes containing information about tickets for the event. The number of the ticket would be the key field, the information nodes will store would be section number, row number, seat number, name and date of the event and purchaser's name. I suppose I need to use HashMap or linkedHashMap for this and create an array or linked list with all these nodes. But I don't know how to create...
A certain business keeps a database of information about its customers. A. Let C be the...
A certain business keeps a database of information about its customers. A. Let C be the rule which assigns to each customer shown in the table his or her home phone number. Is C a function? Explain your reasoning.
Designing and refining an Entity-Relationship Model A company wants a simple database to record information about...
Designing and refining an Entity-Relationship Model A company wants a simple database to record information about ticket sale for theatre performances. They describe the key elements of their requirements in the following points: • Customers have a name, phone number, a credit card no, and a unique customer number. • Customers can attend many performances, and each performance can have many customers attending. • Each performance of a show is on at a specific date and time, at a venue....
Family Supermarkets has decided to increase the size of its Lansing store. It wants information about...
Family Supermarkets has decided to increase the size of its Lansing store. It wants information about the profitability of its individual product lines: meats, fresh produce, and packaged food. The following data is for the year 2017 for each product line: Meats Fresh Produce Packaged Foods Revenue $790,000 $840,000 $460,000 Cost of goods sold $590,000 $600,000 $340,000 purchase orders 276 315 126 hours of stocking shelves 204 2,021 1,067 items sold 311,000 443,000 131,000 The Company also provides the following...
Dankia wants some information about perfectly competitive industry and its supply curve. You could tell her...
Dankia wants some information about perfectly competitive industry and its supply curve. You could tell her that A. All of the other answers are incorrect B. For a perfectly competitive decreasing-cost industry the long-run supply curve is somewhat elastic C. For a perfectly competitive increasing-cost industry the long-run supply curve does not exist D. For a perfectly competitive increasing-cost industry the long-run supply curve will be sloping downwards E. For a perfectly competitive decreasing-cost industry the long-run supply will be...
Seacoast Company provided the following information about its standard costing system for 2016: Standard Data Actual...
Seacoast Company provided the following information about its standard costing system for 2016: Standard Data Actual Data Materials 10 lbs. @ $4 per lbs. Produced 4,000 units Labor 3 hrs. @ $21 per hr. Materials purchased 50,000 lbs. for $215,000 Budgeted production 3,500 units Materials used 41,000 lbs. Labor worked 11,000 hrs. costing $220,000 Instructions Calculate the labor price variance and the labor quantity variance.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT