Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

Passenger table (passengerid, address etc.) Flight table (flight id, departure, destination, depDate) Booking table (cID, fid, date, cost) a. Find Passengers who live in

Passenger table (passengerid, address etc.) Flight table (flight id, departure, destination, depDate) Booking 

Passenger table (passengerid, address etc.) Flight table (flight id, departure, destination, depDate) Booking table (cID, fid, date, cost) a. Find Passengers who live in Chicago b. Total number of bookings by month of the flights departing at Chicago c. Which flight earns the most? d. What is the difference between number of flights booked to Chicago in 2022 and number of flights booked to Chicago in 2023? e. Find the names of customers who made more than two bookings before (some date). Q2. Table R with two columns and 5 rows. Contains integers. Table S with two columns and 5 rows. Contains integers. Six different possible result sets are given. a. For R.value= svalue inner join, find which of the result sets is the correct match for this query b. For full outer join, find the correct result set c. For left outer join, find the correct result set d. For right outer join, find the correct result set e. For rid > s.id, find the correct result set for a left outer join. Q4.Employee Table - has two columns - name, manager name a. Find all the managers of 'Jack' b. Find all the common managers of 'Jack' and 'aslan'

Step by Step Solution

3.41 Rating (160 Votes )

There are 3 Steps involved in it

Step: 1

Lets address each of the questions and queries Q1 Passenger Flight and Booking Tables a To find passengers who live in Chicago sql SELECT FROM Passenger WHERE address LIKE Chicago This query selects a... 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_2

Step: 3

blur-text-image_3

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

Operations Management Processes And Supply Chains

Authors: Lee Krajewski, Naresh Malhotra, Larry Ritzman

13th Global Edition

129240986X, 978-1292409863

Students explore these related Databases questions