Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please solve these and also explain how to do them. 2 | l | AMOOEL PK MOD _ CODE MOD _ MANUF MOD _ NAME
Please solve these and also explain how to do them. l AMOOEL
PK MODCODE
MODMANUF
MODNAME
MODSEATS
MODCHGMILE
l ARCRAFT
P REFERENCESD PK ACNUMBER
MODCODE
ACTTAF
ACTTEL
ACTTER
CHARFUELGALLONS CHAROILQTS CUSCODE Write a query that will list all the charter flights. Display the ac number, model name, charge per mile, distance, total flight cost charge per mile distance and destination. Display the balance as currency with decimal places. Sort the results in ascending order by the destination. The airport manager wants to know the total distance flown and number of flights for each destination. The manager only wants to see those in which the Total Distance is greater than the average distance for all flights. Order the results in ascending order by charter destination. HINT: you will need to use a subquery on the having line. Due to increasing gas prices, the cost of larger flights will increase by Write a single SQL command to increase the charge per mile for all airline models with seats or more. Show the update statement and a screen shot of the number of rows update and then select the updated rows and show them in your screen shot. Write a single query that will delete employee and employee from the employee table. You will get an error message when executing. Explain the error message. Write a query that will display the number who have earned each rating type. Display the rating name, the rating code and the count. Display the results in descending order by the count For all flights on display the chardate, acnumber, chardest, chardistnace, charhoursflow, and the Flight Cost calculated using the fuelgallons chg mile. Display the flight cost as currency with decimal places. You are interested in looking at all flights to STL You want to know the total distance and the total hours flown by aircraft number for all flights to STL For each employee, display their length of employment, using their hire date year and the current date. Display those who have been employed for or more years. Sort the rows in descending order by length of employment.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started