Question: Answer this in SQL query. 1 . Return each email address and the number of corresponding bookings. Return an email only if it has less

Answer this in SQL query.
1. Return each email address and the number of corresponding bookings. Return an email only if it has less than 4 corresponding bookings. This query should use a JOIN-based approach; you cannot use subselects.
2. Return each flight number whose destination starts with the same letter as the destination of flight 'BA405'. Return the rows in their alphabetic order. Do not return flight 'BA405'. the query should use a JOIN-based approach; you cannot use subselect.
3. Return the ID, the first name, the last name of each person who booked at least one flight cheaper than 120 dollars. return each person just once. you do not have any restrictions for this query.
4. what is the position of flight 'BA1515' if you order the Bristish Airway (BA) flights by their duration in descending order? do not count the unknown values. return a single value and name the column as position. the query should use a subselect-based approach; you cannot join table.
5. return the name of each airline that operates a flight to New York and Paris too. Order the names. This query should use a subselect-based approach; you cannot join tables.

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!