Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lernen Challenge: Customers from Specific Cities with Orders | Subqueries in E-commerce Analytics
Subqueries in SQL

bookChallenge: Customers from Specific Cities with Orders

Aufgabe

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, and city columns from the customers table.
  • Only include customers whose city is either 'New York' or 'Los Angeles'.
  • Only include customers who have at least one matching customer_id in the orders table.
  • Use a subquery in your solution.

Lösung

War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 1. Kapitel 5
single

single

Fragen Sie AI

expand

Fragen Sie AI

ChatGPT

Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen

close

bookChallenge: Customers from Specific Cities with Orders

Swipe um das Menü anzuzeigen

Aufgabe

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, and city columns from the customers table.
  • Only include customers whose city is either 'New York' or 'Los Angeles'.
  • Only include customers who have at least one matching customer_id in the orders table.
  • Use a subquery in your solution.

Lösung

Switch to desktopWechseln Sie zum Desktop, um in der realen Welt zu übenFahren Sie dort fort, wo Sie sind, indem Sie eine der folgenden Optionen verwenden
War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 1. Kapitel 5
single

single

some-alt