Challenge: Customers from Specific Cities with Orders
Task
Swipe to start coding
Find all customers from either 'New York' or 'Los Angeles' who have placed at least one order.
- Select the
customer_id,name, andcitycolumns from thecustomerstable. - Only include customers whose
cityis either 'New York' or 'Los Angeles'. - Only include customers who have at least one matching
customer_idin theorderstable. - Use a subquery in your solution.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 1. ChapterΒ 5
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Awesome!
Completion rate improved to 5.56
Challenge: Customers from Specific Cities with Orders
Swipe to show menu
Task
Swipe to start coding
Find all customers from either 'New York' or 'Los Angeles' who have placed at least one order.
- Select the
customer_id,name, andcitycolumns from thecustomerstable. - Only include customers whose
cityis either 'New York' or 'Los Angeles'. - Only include customers who have at least one matching
customer_idin theorderstable. - Use a subquery in your solution.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 1. ChapterΒ 5
single