Test Index
CBSE Class 12 Computer Science 2022 Paper 91
© 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
Table : FLIGHT
(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
PNO | NAME | GENDER | FNO |
|---|---|---|---|
1001 | Suresh | MALE | F101 |
1002 | Anita | FEMALE | F104 |
1003 | Harjas | MALE | F102 |
1004 | Nita | FEMALE | F103 |
FNO | START | END | F_DATE | FARE |
|---|---|---|---|---|
F101 | MUMBAI | CHENNAI | 2021-12-25 | 4500 |
F102 | MUMBAI | BENGALURU | 2021-11-20 | 4000 |
F103 | DELHI | CHENNAI | 2021-12-10 | 5500 |
F104 | KOLKATA | MUMBAI | 2021-12-20 | 4500 |
F105 | DELHI | BENGALURU | 2021-01-15 | 5000 |
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.
Go to Question: