Using an OR statement and a Cartesian product / WHERE join, display flight number, origination and...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Using an "OR" statement and a "Cartesian product / WHERE" join, display flight number, origination and destination for flights that originate from an airport that does not have a hub airline or flights that originate from an airport that is a hub for American Airlines. Order by origination airport. 1 2 3 4 5 6 7 8 9 10 11 FL_FLIGHT_NO FL_ORIG FL_DEST AIR HUB_AIRLINE American American. (null) (null) 1 2 3 4 2. Using an SET OPERATOR statement and a "JOIN ON" join, display flight number, origination and departure for flights that originate from an airport that does not have a hub airline or flights that originate from an airport that is a hub for American Airlines. Order by origination airport. 5 6 7 8 9 10 11 1 2 3 4 5 500 IAH 521 IAH 198 LAX 600 PHX 604 PHX 298 PHX 60 PHX 40 PHX 15 PHX 104 PHX 606 PHX 6 7 8 9 FL FLIGHT_NO FL_ORIG FL_DEST AIR HUB_AIRLINE American. American (null) (null) (null) 10 11 12 13 14 DEW DTW SFO SFO SFO LAX 500 IAH 521 IAH 198 LAX 600 PHX 604 PHX 298 PHX 60 PHX 40 PHX 15 PHX 104 PHX 606 PHX SEO LAX LAX FLG SEO (null) (null) (null) (null) (null) DEW DTW SEO SEO SFO LAX SEO LAX LAX FLG SFO 3. Display the flight number, departure date and equipment type for all equipment that is manufactured by Concorde. Order by departure date and flight number. DEP_FLIGHT_NO DEP_DEP_DATE EQ_EQUIP_TYPE 1 SSM 2 VIT 3 WBK (null) (null) 502 08-APR-17 503 08-APR-17 503 28-APR-17 503 29-APR-17 502 08-JUL-17 503 08-JUL-17 503 23-JUL-17 503 27-JUL-17 503 29-JUL-17 503 30-JUL-17 502 08-AUG-17 503 08-AUG-17 502 08-SEP-17 503 08-SEP-17 (null) (null) (null) (null) (null) (null) CONCORDE CONCORDE CONCORDE CONCORDE CONCORDE CONCORDE CONCORDE CONCORDE CONCORDE CONCORDE CONCORDE CONCORDE CONCORDE CONCORDE 4. Using a SET OPERATOR, display the IDs and names of pilots who are not currently scheduled for a departure. PIL PILOT_ID PIL_PILOTNAME Moore, Sharon S. Tabor, Victor T. Knighton, Bill Using an "OR" statement and a "Cartesian product / WHERE" join, display flight number, origination and destination for flights that originate from an airport that does not have a hub airline or flights that originate from an airport that is a hub for American Airlines. Order by origination airport. 1 2 3 4 5 6 7 8 9 10 11 FL_FLIGHT_NO FL_ORIG FL_DEST AIR HUB_AIRLINE American American. (null) (null) 1 2 3 4 2. Using an SET OPERATOR statement and a "JOIN ON" join, display flight number, origination and departure for flights that originate from an airport that does not have a hub airline or flights that originate from an airport that is a hub for American Airlines. Order by origination airport. 5 6 7 8 9 10 11 1 2 3 4 5 500 IAH 521 IAH 198 LAX 600 PHX 604 PHX 298 PHX 60 PHX 40 PHX 15 PHX 104 PHX 606 PHX 6 7 8 9 FL FLIGHT_NO FL_ORIG FL_DEST AIR HUB_AIRLINE American. American (null) (null) (null) 10 11 12 13 14 DEW DTW SFO SFO SFO LAX 500 IAH 521 IAH 198 LAX 600 PHX 604 PHX 298 PHX 60 PHX 40 PHX 15 PHX 104 PHX 606 PHX SEO LAX LAX FLG SEO (null) (null) (null) (null) (null) DEW DTW SEO SEO SFO LAX SEO LAX LAX FLG SFO 3. Display the flight number, departure date and equipment type for all equipment that is manufactured by Concorde. Order by departure date and flight number. DEP_FLIGHT_NO DEP_DEP_DATE EQ_EQUIP_TYPE 1 SSM 2 VIT 3 WBK (null) (null) 502 08-APR-17 503 08-APR-17 503 28-APR-17 503 29-APR-17 502 08-JUL-17 503 08-JUL-17 503 23-JUL-17 503 27-JUL-17 503 29-JUL-17 503 30-JUL-17 502 08-AUG-17 503 08-AUG-17 502 08-SEP-17 503 08-SEP-17 (null) (null) (null) (null) (null) (null) CONCORDE CONCORDE CONCORDE CONCORDE CONCORDE CONCORDE CONCORDE CONCORDE CONCORDE CONCORDE CONCORDE CONCORDE CONCORDE CONCORDE 4. Using a SET OPERATOR, display the IDs and names of pilots who are not currently scheduled for a departure. PIL PILOT_ID PIL_PILOTNAME Moore, Sharon S. Tabor, Victor T. Knighton, Bill
Expert Answer:
Related Book For
Smith and Roberson Business Law
ISBN: 978-0538473637
15th Edition
Authors: Richard A. Mann, Barry S. Roberts
Posted Date:
Students also viewed these databases questions
-
answer all questions as instructed below. attend all questions. 4 Computer Vision (a) Explain why such a tiny number of 2D Gabor wavelets as shown in this sequence are so efficient at representing...
-
You are asked to evaluate the following two projects for Boring Corporation using the NPV method combined with the PI approach, which project would you select? Use a discount rate of 10 percent....
-
Pfender Guitars has a current annual cash dividend policy of $6.00 price of the stock is set to yield a return of 10%. What is the price of this stock if the dividend will be paid. a. for 8 years and...
-
Graph the number on the number line.
-
The manager of Gladstone Ltd is not convinced of the scientific evidence behind climate change, and does not consider it necessary to adopt changes in the companys operations which would decrease its...
-
1. In what ways does UTCs corporate- level strategy of unrelated diversification create value? 2. What are the dangers and disadvantages of this strategy? 3. Collect some recent information on UTC...
-
The formula of a compound is Y3(PO4)2. The electronic configuration of the atom of Y is 15. A. 2.8.2 B. 2.8.3 C 2.8.4 16. D. 2.8.5 The atomic numbers and mass numbers of atoms, W, X, Y and Z are...
-
Total 40 marks FIN 222 US Pizza is one of those foods with which Americans have an abiding love affair. It is also one that lends itself to all sorts of variations. It was started in the 1990s by...
-
Why is intercultural communication so important in this day and age? What is a low and high impact culture? Why should we know this? What is ethnocentrism? Do we want to have it or avoid it? Why...
-
6) Given the following definition of Value::operator= 1 Values operator= (const Value &rhs) pcler pissed to ref. 2 ( 3 address of ths 4 5 6 7} Explain the meaning of '&' on line 1 and on line 3...
-
al 10 UNIVERSAL CONTROL CORP. BACKGROUND Universal Control Corp. is a leading supplier for process control systems and equipment used in a wide variety of production and distribution applications....
-
3.2. Generate thirty points (x,y;), i = 1,2,..., 30, by the MATLAB code randn ('seed', 314); x=linspace(0, 1,30)'; y=2*x.^2-3 *x+1+0.05*randn (size (x)); Find the quadratic function y = ax +bx+c that...
-
Lyle plans to invest $2,000 at the end of each 6-month period into a retirement account that earns an annual rate of 16% compounded semiannually. If he continues with his plan for 3 years, use the...
-
6. The standard algorithm for multiplying two n-bit binary integers r and y costs (n). A naive divide-and-conquer algorithm is to let z=: 2/2a +b and y = 2n/c+d, then ry = = (2/2a + b) (2/2c+d) 2" ac...
-
a) Determine the equivalent capacitance between the two marked points a and b in the circuit above 3,0 F 6,0 F a b 2,0 F Now assume that the voltage across a and b is Vab = 12 V. b) Determine the...
-
What is the difference between the straight-line method of depreciation and the written down value method? Which method is more appropriate for reporting earnings?
-
Following a jury trial defendant was found guilty of issuing a bad check, N.J.S.A. 2C:215. * * * She was sentenced to concurrent custodial terms of four years consecutive to any sentence imposed by...
-
Vuitton, a French corporation, manufactures high-quality handbags, luggage, and accessories. Crown Hand-bags, a New York corporation, manufactures and distributes ladies handbags. Vuitton handbags...
-
Atlantic Cement operated a large cement plant. Neighboring landowners sued for damages and an injunction, claiming that their properties were injured by the dirt, smoke, and vibrations coming from...
-
Based on Exhibit 1, the execution cost for purchasing the 90,000 shares of BYYP is: A. \($60\),000. B. \($82\),500. C. \($127\),500. Robert Harding is a portfolio manager at ValleyRise, a hedge fund...
-
Which of Yellows statements regarding the trade implementation of non-equity investments is correct? A. Only Statement 4 B. Only Statement 5 C. Both Statement 4 and Statement 5 Robert Harding is a...
-
What type of algorithm should be used to purchase the XYZ shares given Hardings priority in building the XYZ position and his belief about potential price movements? A. Scheduled algorithm B. Arrival...
Study smarter with the SolutionInn App