Question: 7. Write an SQL query to display the flight id, destination place and the customer name using cross join. Filter the result whose flight id

 7. Write an SQL query to display the flight id, destination
place and the customer name using cross join. Filter the result whose

7. Write an SQL query to display the flight id, destination place and the customer name using cross join. Filter the result whose flight id is 201. [2 marks] 8. Write an SQL query to display the flight name, source place and the travel date of the flight only which flight travel date is after the travel date of the flight id 102. (Use sub query) [4 Marks) 9. Write an SQL query to display the customer name, number of tickets booked by the customer and the ticket amount for the flights whose source place is "Muscat". (Use sub query) [4 Marks] 1 Muscat 202 Indigo 14-Feb-2021 11 Chennai Delhi 23-Jan-2021 null Table Structure: cust COLUMN NAME DATA TYPE SVE Construct Cid Varchar2 4 Cname Varchar2 10 Ticket Number 3 Amount Number 6,3 Fid Number 3 Foreign Key Note: Cid is Customer ID, Channe is Customer Name, Ticket is number of tickets booked, Amount is ticket amount and Fid is Flight ID which refers the Fid column from flight table. Records inserted into the cust table Cid Cname Ticket Fid Amount C101 101 5 Ahmed 572.400 C102 102 4 Aisha 426.300 201 143.800 C103 Waleed null 205 649.500 C104 Mana 7 438.600 102 5 C108 Moza Links Desktop 00 ENG w]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!