Challenge: Find Customers with Orders
Opgave
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.
Løsning
Var alt klart?
Tak for dine kommentarer!
Sektion 1. Kapitel 2
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 4.76
Challenge: Find Customers with Orders
Stryg for at vise menuen
Opgave
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.
Løsning
Var alt klart?
Tak for dine kommentarer!
Sektion 1. Kapitel 2
single