SQL Practice Questions
SQL Practice Questions
1. Find the names and emails of all customers who have sent the message with
subject “Happy New Year”
2. Find the names and common addresses of all pairs of customers who claim to
have a famlily size 2 and and have the same address.
3. Find the names of all customers and their family size whose family size is at least
50% more than the average family size. Sort the results by family size.
4. Find all customers each having a family size different from the total number of
customers having the same address as him or her.
3. Flights (flightNo, flightDate) on which there are at least two customers, as well as
travellers)
9. How many passengers ever flew to Istanbul? If somebody travelled to Istanbul more