The following query is supposed to retrieve all aircraft and pilot information that leave from Perth...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
The following query is supposed to retrieve all aircraft and pilot information that leave from Perth Airport. It seems to be working but for some reason, one of the flights is not appearing. The missing flight is one where the plane has no co-pilot. Describe what is going wrong with this query. How would you fix it? SELECT p.planeModel, f.flightTo, f.flightFrom, p.pilotName, c.coPilotName FROM Plane p INNER JOIN Flight f ON p.planeId = f.planeId INNER JOIN Pilot p ON f.pilotId = p.pilotId RIGHT OUTER JOIN Pilot c ON f.coPilot = c.pilotId WHERE f.flightFrom = 'PER'; The following query is supposed to retrieve all aircraft and pilot information that leave from Perth Airport. It seems to be working but for some reason, one of the flights is not appearing. The missing flight is one where the plane has no co-pilot. Describe what is going wrong with this query. How would you fix it? SELECT p.planeModel, f.flightTo, f.flightFrom, p.pilotName, c.coPilotName FROM Plane p INNER JOIN Flight f ON p.planeId = f.planeId INNER JOIN Pilot p ON f.pilotId = p.pilotId RIGHT OUTER JOIN Pilot c ON f.coPilot = c.pilotId WHERE f.flightFrom = 'PER';
Expert Answer:
Answer rating: 100% (QA)
The issue with the provided SQL query is that it uses an INNER JOIN between the Flight table and the ... 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
-
The radius of a solid conducting sphere is R = 14.0 cm and it has a uniformly distributed charge of 30.5 nC on its surface. The center of the sphere is at the origin of the xy coordinate system. The...
-
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...
-
Read the case study "Southwest Airlines," found in Part 2 of your textbook. Review the "Guide to Case Analysis" found on pp. CA1 - CA11 of your textbook. (This guide follows the last case in the...
-
Evaluate the expression for the given value(s) of the variable(s). 4x - 7, x = 5/2
-
A cylinder fitted with a frictionless piston contains R-134a at 100 F, 80% quality, at which point the volume is 3 Gal. The external force on the piston is now varied in such a manner that the R-134a...
-
The position function of a particle is given by r(t) = (-3t2, -3t, t2 2t). At what time is the speed minimum? Given that the acceleration vector is a(t) = (-4 cos(2t))i + (-4 sin(2t))j + (-2t)k, the...
-
Review the list of common closing mistakes in the chapter. Give specific examples of how each might affect your success in a sales call.
-
During December, Far West Services makes a $3,200 credit sale. The state sales tax rate is 6% and the local sales tax rate is 2.5%. Record sales and sales tax payable.
-
Bristol Retail Group begins the year with inventory of $47,000 and ends the year with inventory of $37,000. During the year, the company has four purchases for the following amounts. Purchase on...
-
Walgreen Company is a well-known drugstore chain. A condensed balance sheet for August 31, 2011, follows ($ in millions): Use a format similar to Exhibit to analyze the following transactions for the...
-
In a survey of 2800 adults, 1441 say they have started paying bills online in the last year. Construct a 99% confidence interval for the population proportion. Interpret the results. A 99% confidence...
-
Doug and Sally (unrelated individuals) own 60 percent and 40 percent respectively of the outstanding stock of Platt Corporation. Platt's assets consist of land (Sec. 1231 property) that was purchased...
-
Identify some reasons for design or redesign.
-
Pearl owns 60 percent of Gorman Corp.'s stock. During 2014, Pearl contributed property with an adjusted basis of \(\$ 20,000\) and a fair market value of \(\$ 15,000\) to Gorman Corp. in a...
-
Based on the story so far, what do you think are the essential characteristics of SHRD?
-
Name the key questions of product and service design.
-
Image caption the expansion would be 32 million British pounds. The cash flows from the exchange rate is 2.12 Canadian dollars per British pound (CDNS/BPD). Interest Parity relationship holds
-
Which should drive action planning more, strengths or weaknesses? That is, is it more important to build on your strengths or to reduce your weaknesses? Explain.
-
Swell Productions is sponsoring an outdoor conclave for owners of collectible and classic Fords. The concession stand in the T-Bird area will sell clothing such as T-shirts and official Thunderbird...
-
At Quickie Car Wash, the wash process is advertised to take less than 7 minutes. Consequently, management has set a target average of 390 seconds for the wash process. Suppose the average range for a...
-
Mulan sells liquid detergents to hotels, hospitals, and individual customers through a network of retailers and wholesalers. To reduce environmental impact, the company is considering selling...
-
Verify that \(\left|\Delta v_{\mathrm{u} x} ight| /\left|\Delta v_{\mathrm{s} x} ight| \approx 1 / 3\) for the two carts in Figure 4.9. Figure 4.9 Velocity-versus-time graph for a standard cart and a...
-
What is the ratio of the \(x\) components of the change in velocity for the plastic and metal carts, \(\Delta v_{\mathrm{p} x} / \Delta v_{\mathrm{m} x}\), in Figure 4.10? Figure 4.10...
-
Is the inertia of the cart of unknown inertia in Figure 4.9 greater or less than that of the standard cart? Figure 4.9 Velocity-versus-time graph for a standard cart and a cart of unknown inertia...
Study smarter with the SolutionInn App