Challenge: Find Customers with Orders
Taak
Swipe to start coding
Write a query to return the names of all customers who have placed at least one order. Use an INNER JOIN between the customers and orders tables to accomplish this.
- Select the
namecolumn from thecustomerstable. - Use an INNER JOIN to combine rows from
customersandorderswhere thecustomer_idmatches in both tables. - Ensure only customers who have at least one matching order appear in the result.
Oplossing
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 1. Hoofdstuk 2
single
Vraag AI
Vraag AI
Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.
Geweldig!
Completion tarief verbeterd naar 4.76
Challenge: Find Customers with Orders
Veeg om het menu te tonen
Taak
Swipe to start coding
Write a query to return the names of all customers who have placed at least one order. Use an INNER JOIN between the customers and orders tables to accomplish this.
- Select the
namecolumn from thecustomerstable. - Use an INNER JOIN to combine rows from
customersandorderswhere thecustomer_idmatches in both tables. - Ensure only customers who have at least one matching order appear in the result.
Oplossing
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 1. Hoofdstuk 2
single