Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Table Creation: Write all SQL statements used to create your tables. Database State: Write all SQL statements used to insert values into the database Table

image text in transcribed

Table Creation:

Write all SQL statements used to create your tables.

Database State:

Write all SQL statements used to insert values into the database

Table Screenshot:

List all your table instance/data, after the insertion process take screenshot from each table.

Query Implementation:

Views list:

Available Airplanes: This view returns the airplane type name, max seats, manufacture company and number of available airplanes from that type.

Airports: This view returns the name and code of the Airports for each Care Airplane type.

Flight legs : This view returns all flight legs, working weekdays and airlines based on their flight number.

Reservations: This view returns the name and phone number for each customer along with the seat no that are assigned to him/her, the number of the flight, date of flight, scheduled departure time, scheduled arrival time, departure airport and arrival airport.

Queries list:

List name and phone number for each customer whose flight date is 1-1-2023.

List flight fare for each flight with at least two legs.

List all airplanes id from Boeing company.

Find the most visited airport.

Find the highest flight fare and the number of its legs.

List all morning flights legs.

List all airplane types that can land in Riyadh.

List all the delayed legs.

List all flights legs from Saudia airlines on Monday.

List all legs that arrives 1-1-2023 in Jeddah.

Find the smallest airplane.

Find the shortest and cheapest flight.

Create and show the result of two views and eight queries form the above lists.

Conceptual Data Model Ikelational Databas Schema AirportCode. Iypekame

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Concepts of Database Management

Authors: Philip J. Pratt, Joseph J. Adamski

7th edition

978-1111825911, 1111825912, 978-1133684374, 1133684378, 978-111182591

More Books

Students also viewed these Databases questions