Test Index

CBSE Class 12 Computer Science 2022 Paper 91 Get it on Google PlayDownload on the App Store

© examsnet.com
Question : 11 of 13
Marks: +1, -0
Write SQL queries for (a) to (d) based on the tables PASSENGER and FLIGHT given below :
Table : PASSENGER
PNONAMEGENDERFNO
1001SureshMALEF101
1002AnitaFEMALEF104
1003HarjasMALEF102
1004NitaFEMALEF103
Table : FLIGHT
FNOSTARTENDF_DATEFARE
F101MUMBAICHENNAI2021-12-254500
F102MUMBAIBENGALURU2021-11-204000
F103DELHICHENNAI2021-12-105500
F104KOLKATAMUMBAI2021-12-204500
F105DELHIBENGALURU2021-01-155000
(a) Write a query to change the fare to 6000 of the flight whose FNO is F104.
(b) Write a query to display the total number of MALE and FEMALE PASSENGERS.
(c) Write a query to display the NAME, corresponding FARE and F_DATE of all PASSENGERS who have a flight to START from DELHI.
(d) Write a query to delete the records of flights which end at Mumbai.
Advertisements
Go to Question: