Challenge: Customers from Specific Cities with Orders
Opgave
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 alt klart?
Tak for dine kommentarer!
Sektion 1. Kapitel 5
single
Spørg AI
Spørg AI
Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat
Fantastisk!
Completion rate forbedret til 5.56
Challenge: Customers from Specific Cities with Orders
Stryg for at vise menuen
Opgave
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 alt klart?
Tak for dine kommentarer!
Sektion 1. Kapitel 5
single