Question

SQL --

PROBLEM 4. At least two options for a single-airline round-trip.
-- Find cities where there are at least two companies, where
-- each company operates round-trip routes between two cities

Airline AirlinelD Source SourcelD Destination DestinationlD Codeshare Stops Equipment BNI BNI CNC CNC CNC None None None None

0 0
Add a comment Improve this question Transcribed image text
Answer #1

In this table company is not mention

in my opinion there is one more table in which city and company are attributes

if company mention in question is airline then sql query is

table2= city company

table1 = company source destionation

select source from table1 as c1, tabel1 as c2 where c1.source=c2.destination and c1.destination=c2.source and company=(select company from table2 group by company having count>2)

in case of any query please give the complete table......

Add a comment
Know the answer?
Add Answer to:
SQL -- PROBLEM 4. At least two options for a single-airline round-trip. -- Find cities where there are at least two companies, where -- each company operates round-trip routes between two cities Airl...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT