Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases A Beginners Guide

Authors: Andy Oppel

1st Edition

007160846X, 978-0071608466

More Books

Students also viewed these Databases questions

Question

What are the determinants of cash cycle ? Explain

Answered: 1 week ago