Test Instructions: 1. Use SQL to create the tables listed below. (15 Points) FLIGHT PK FlightID...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Test Instructions: 1. Use SQL to create the tables listed below. (15 Points) FLIGHT PK FlightID AirlineName FlightNumber DepartureDateTime FK DestinationID AirplaneType DestinationID 5698 7558 8569 6654 NUMBER(6) VARCHAR(15) NUMBER(4) TIMESTAMP NUMBER(4) VARCHAR(4) 2. Use SQL to insert the data listed below into each table. (15 Points) FlightID AirlineName 369987 United 236774 112558 223698 857457 Chicago Denver Delta Delta Jet Blue Southwest DESTINATION PK DestinationID DestinationCity DestinationState Destination City Destination State DestinationAirportCode Philadelphia PHI San Francisco SFO ORD DEN NUMBER(4) VARCHAR(25) VARCHAR(2) Destination AirportCode VARCHAR(3) PA CA IL CO Valid Airplane Types: A350, 737, 747, 767 FlightNumber 1200 1645 1842 9965 1269 3. Using SQL, update the Flight Number for FlightID 857457 to 1260. (10 points) 4. Using SQL, create a query that displays the Airline Name, Flight Number and Airplane Type for all non-A350 flights. (10 points) DepartureDateTime DestinationID AirplaneType 11/15/2023 10:00 AM 7558 737 11/15/2023 04:30 PM 6654 11/16/2023 08:15 PM 11/16/2023 09:20 AM 11/17/2023 07:45 PM 5698 5698 7558 A350 767 767 747 5. Using SQL, create a query that displays the Airline Name, Flight Number, Departure Date/Time and Airport Code for all flights traveling to San Francisco ordered by Airline Name. (10 points) 6. Using SQL, create a query that displays every City and State and identify the Airline Name, Flight Number and Departure Date/Time for each flight ordered by City then by Airline Name. (10 points) 7. Upload your SQL file on Blackboard under Assignments Exams Exam 2 Exam 2 - SQL Programming Submission by 9:40pm. Test Instructions: 1. Use SQL to create the tables listed below. (15 Points) FLIGHT PK FlightID AirlineName FlightNumber DepartureDateTime FK DestinationID AirplaneType DestinationID 5698 7558 8569 6654 NUMBER(6) VARCHAR(15) NUMBER(4) TIMESTAMP NUMBER(4) VARCHAR(4) 2. Use SQL to insert the data listed below into each table. (15 Points) FlightID AirlineName 369987 United 236774 112558 223698 857457 Chicago Denver Delta Delta Jet Blue Southwest DESTINATION PK DestinationID DestinationCity DestinationState Destination City Destination State DestinationAirportCode Philadelphia PHI San Francisco SFO ORD DEN NUMBER(4) VARCHAR(25) VARCHAR(2) Destination AirportCode VARCHAR(3) PA CA IL CO Valid Airplane Types: A350, 737, 747, 767 FlightNumber 1200 1645 1842 9965 1269 3. Using SQL, update the Flight Number for FlightID 857457 to 1260. (10 points) 4. Using SQL, create a query that displays the Airline Name, Flight Number and Airplane Type for all non-A350 flights. (10 points) DepartureDateTime DestinationID AirplaneType 11/15/2023 10:00 AM 7558 737 11/15/2023 04:30 PM 6654 11/16/2023 08:15 PM 11/16/2023 09:20 AM 11/17/2023 07:45 PM 5698 5698 7558 A350 767 767 747 5. Using SQL, create a query that displays the Airline Name, Flight Number, Departure Date/Time and Airport Code for all flights traveling to San Francisco ordered by Airline Name. (10 points) 6. Using SQL, create a query that displays every City and State and identify the Airline Name, Flight Number and Departure Date/Time for each flight ordered by City then by Airline Name. (10 points) 7. Upload your SQL file on Blackboard under Assignments Exams Exam 2 Exam 2 - SQL Programming Submission by 9:40pm.
Expert Answer:
Related Book For
Data Modeling and Database Design
ISBN: 978-1285085258
2nd edition
Authors: Narayan S. Umanath, Richard W. Scammel
Posted Date:
Students also viewed these databases questions
-
ConAir (CA) commercial airlines company requires you experience in database design and have approached you to assist in the design of their new airline database system. They urgently need to have...
-
The purpose of this exercise is to give you an opportunity to create the tables for Bearcat Incorporated. The tables themselves are based on the relations that appear in the following figure. L1:...
-
According to a recent study, the IT strategic role that has the greatest impact on shareholder value is: a. informate. b. digitize. c. automate. d. transform.
-
How does an increase in the money supply get into the hands of consumers? What do they do with it?
-
Cycle Travel Tours showed the following trial balance information (in alphabetical order) for its first month just ended March 31, 2020: Required Use the information provided to complete an income...
-
Does a beat frequency increase or decrease as the frequencies get closer to each other?
-
The Alta Company is constructing a production complex which qualifies for interest capitalization. The following information is available: Capitalization period: January 1, 2007 to June 30, 2009...
-
what kind of training plan is needed to help employees engage with a new digital tool like project management software? What are some of the associated costs for the system implementation? Provide an...
-
Barolo Company manufactures laptop stickers for Italian sports teams. Barolo's risk management team has identified the company's top five inherent risks and plans to manage them using a typical ERM...
-
Your manager Joe wants to transport tyres from the Durban warehouse to the factory in Johannesburg and wants to use a pipeline to do so. Do you think this is a good idea? If not, explain to Joe which...
-
3) Brady Division has operating income of $200,000 for the year ending December 31, 2011. Average invested capital is $1,000,000 and the weighted-average cost of capital is 10%. The division is...
-
Some consulting work for a communications firm in Thailand. You will be paid B468,187 (Thai Baht) seven months from now when the work is done. To hedge against an unfavorable exchange rate when you...
-
D. Setting up Sales tax 1. Where do you go to setup sales tax? 2. Answer setup questions: a) Physical address of your company b) If you collect sales tax for states other than where you are located?...
-
2.1 The current Australian dollar exchange rate (Australian dollar per US dollar) is Et = 1.8; the annualized interest rate on three year bonds is 2% in Australia compared to a 1% annualized interest...
-
The factory overhead budget for the period includes all production-related costs other than direct labor and direct materials only indirect manufacturing costs that will be paid in cash total...
-
Identify a workplace conflict you have seen, witnessed, or believe is common in most workplaces. Discuss how that situation could be handled in a way that is productive and respectful. You should...
-
In Problems 1522, find the principal needed now to get each amount; that is, find the present value. To get $750 after 2 years at 2.5% compounded quarterly.
-
Identify the superkeys, candidate key(s), and the primary key for the following relation instance of the STU-CLASS relation schema. Student Number Student ACCOUNTING STEDRY ANTHROPOLOGY AP150 MWE9 5...
-
The instance diagram shown below illustrates the relationship between Sullivan Insurance Agency's agents and clients. Using this instance diagram, write the narrative that describes the relationship...
-
Consider the following Presentation Layer ER diagram. a. Identify all entity types that at one time or another function as a superclass. b. List the superclass entity type and subclass entity type(s)...
-
\(\mathrm{NaK}(56 \% / 44 \%)\), which is an alloy of sodium and potassium, is used to cool fast neutron nuclear reactors. The NaK flows at a rate of \(\dot{m}=0.8 \mathrm{~kg} / \mathrm{s}\) through...
-
Heated air required for a food-drying process is generated by passing ambient air at \(20^{\circ} \mathrm{C}\) through long, circular tubes \((D=50 \mathrm{~mm}, L=5 \mathrm{~m}\) ) housed in a steam...
-
Liquid mercury at \(0.25 \mathrm{~kg} / \mathrm{s}\) is to be heated from 325 to \(375 \mathrm{~K}\) by passing it through a \(25-\mathrm{mm}\)-diameter tube whose surface is maintained at \(400...
Study smarter with the SolutionInn App