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

bookChallenge: Customers from Specific Cities with Orders

Taak

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.

Oplossing

Was alles duidelijk?

Hoe kunnen we het verbeteren?

Bedankt voor je feedback!

Sectie 1. Hoofdstuk 5
single

single

Vraag AI

expand

Vraag AI

ChatGPT

Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.

close

bookChallenge: Customers from Specific Cities with Orders

Veeg om het menu te tonen

Taak

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.

Oplossing

Switch to desktopSchakel over naar desktop voor praktijkervaringGa verder vanaf waar je bent met een van de onderstaande opties
Was alles duidelijk?

Hoe kunnen we het verbeteren?

Bedankt voor je feedback!

Sectie 1. Hoofdstuk 5
single

single

some-alt