Passenger table (passengerid, address etc.) Flight table (flight id, departure, destination, depDate) Booking table (cID, fid,...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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' 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'
Expert Answer:
Answer rating: 100% (QA)
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... View the full answer
Related Book For
Operations Management Processes And Supply Chains
ISBN: 9781292409863
13th Global Edition
Authors: Lee Krajewski, Naresh Malhotra, Larry Ritzman
Posted Date:
Students also viewed these databases questions
-
Blackhawks Incorporated had the following balances at the beginning of November Credits BLACKHAWKS INCORPORATED Trial Balance November 1 AccountsDebits Cash $ 3 , 1 0 0 Accounts Receivable 5 9 0...
-
Managing Scope Changes Case Study Scope changes on a project can occur regardless of how well the project is planned or executed. Scope changes can be the result of something that was omitted during...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Two positive charges, each with charge q = 2.5 nC, are placed as shown in the diagram. The distance d 0.42 m. Find the net electric potential at the point x = 0, y = 0.12 m.
-
If f(x) = c (c a constant) for all x, use Corollary 7 to show that f(x) cx + d for some constant d.
-
What is managed health care? What are the three types of managed health care plans? What are the advantages and disadvantages of each? Describe the basic intention of the Patient Protection and...
-
Discuss the types of discrimination that occur in the workplace.
-
The cost accountant for Upload Games Company prepared the following monthly performance report relating to the Packaging Department: Prepare a revised performance report in which the variances are...
-
Kilbourne Appliances produces two models of beverage coolers for homes and offices, the KA-15 and the KA-24. Data on operations and costs for March follow. Units produced Machine-hours Direct...
-
Suppose your company introduces a referral incentive for existing customers. Namely, cus- tomers can get a $500 discount on their customer service subscription for each customer lead that they refer...
-
The Railroad Ministry is in the process of planning relocations of freight cars among 5 regions of the country to get ready for the fall harvest. Table 1 shows the cost of moving a car between each...
-
If PEDs do not cause irreparable harm to an athletes health, should they be permitted?
-
Indicate whether each of the following statements is true or false by writing T or F in t he a nswer c olumn. An agreement for the sale of personal property for over $500 must be in writing to be...
-
Should baseball and football follow the example of the IOC and disregard records set by players who have used PEDs?
-
You are tasked with analysing the last 2 years of accounts of a global mining firm. A simplified statement of financial position and income statement are provided below. 1. Using the information...
-
Indicate whether each of the following statements is true or false by writing T or F in t he a nswer c olumn. An agreement that cannot be completed within six months must be in w riting.
-
The dollar cost of the Chinese Yuan is $0.0095. a. You are going to the 2022 Beijing Winter Olympics and read that the hotel accommodation is 13,200 Yuan per night. What is the total cost to you in...
-
What can you do to reduce hunger where you live? To reduce hunger globally?
-
Consider this sign seen in a local restaurant: To-go orders do NOT include complimentary chips and salsa. If you have any questions, see our management, NOT our employees. What Impact does this...
-
The mayor of Cambridge, Colorado, wanting to be environmentally progressive, decides to implement a recycling plan. All residents of the city will receive a special three-part bin to separate their...
-
Horizon Cellular manufactures cell phones for exclusive use in its communication network. Management must select a circuit board supplier for a new phone soon to be introduced to the market. The...
-
See the option quote on IBM from the CBOE Web site on the next page showing options expiring in March and April 2022. a. Which option contract had the most trades that day? b. Which option contract...
-
Two European call options with a strike price of \($50\) are written on two different stocks. Suppose that tomorrow, the low-volatility stock will have a price of \($50\) for certain. The...
-
It is February 21, 2022, and you have decided to purchase 10 June call contracts on eBays stock with an exercise price of \($57.50.\) Because you are buying, you must pay the ask price. How much...
Study smarter with the SolutionInn App