Skip to content
Exercise · Final project: interview tasks · lesson 2 of 8

Exercise: orders of guests who share a phone

The chain's owner wants to know which of the guests who share a phone place orders. Write a query that returns every guest whose phone is also recorded for at least one other guest, along with the number of their orders: columns phone, name and orders.