1. write a SQL statement to display the flight numbers (FLT_NUM) and flight dates (FLT_DATE) of all the flights on the ASSIGNMENT table whose flight number (AC_NUM) ends with a "G".
2. write a SQL statement to update the aircraft number (AC_NUM) of the flight number (FLT_NUM) equal to 101 and flight date (FLT_DATE) equal to 15 January 2016, to 411H.
3. write a SQL statement to add a new record to table FLIGHT. Make use of prompts to allow tge values for all the fields of the table to be entered.
4. write a SQL statement to give a summary of the total number of flights per aircraft number (AC_NUM) on table ASSIGNMENT. display the total number of flights with a heading "Total Number of Flights".
5. write a SQL statement that lists all flight dates (FLT_DATE), flight origins (FLT_ORIGIN) and flight destinations (FLT_DESTINATION). Sort the list according to descending flight date and ascending flight origin.
Solved 1 Answer
See More Answers for FREE
Enhance your learning with StudyX
Receive support from our dedicated community users and experts
See up to 20 answers per week for free
Experience reliable customer service
Find all the SQL queries listed below:1.)SELECT FLT_NUM,FLT_DATEFROM ASSIGNMENT WHERE AC_NUMLIKE '%G';2.)UPDATE ASSIGNMENT SET AC_NUM= '411H'WHERE FLT_NUM=101 and FLT_DATE='15 January 2016';3.)INSERT INTO FLIGHT(FLT_NUM, FLT_ORIGIN, FLT_DESTINATION)VALUES ('435E', 'Origin', 'Destination');Values '435E', 'origin' and 'Destination' may have any uservalues for insertion in the table.For Prompting, user needs to press F44.)SELECT COUNT(FLT_NUM) as "Total Number of Flights", AC_NUMFROM ASSIGNMENTGROUP BY AC_NUM;5.)SELECT a.FLT_DATE, f.FLT_ORIGIN, f.FLT_DESTINATIONFROM ASSIGNMENT aJOIN FLIGHT a ON f.FLT_NUM=f.FLT_NUM;Happy Learning!! ...