Challenge: Customers from Specific Cities with Orders
Uppgift
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.
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 1. Kapitel 5
single
Fråga AI
Fråga AI
Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal
Suggested prompts:
Can you explain this in simpler terms?
What are the main points I should remember?
Can you give me an example?
Fantastiskt!
Completion betyg förbättrat till 5.56
Challenge: Customers from Specific Cities with Orders
Svep för att visa menyn
Uppgift
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.
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 1. Kapitel 5
single