Challenge: Find Customers with Orders
Aufgabe
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ösung
War alles klar?
Danke für Ihr Feedback!
Abschnitt 1. Kapitel 2
single
Fragen Sie AI
Fragen Sie AI
Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen
Suggested prompts:
Can you explain this in simpler terms?
What are the main benefits or drawbacks?
Can you give me a real-world example?
Großartig!
Completion Rate verbessert auf 4.76
Challenge: Find Customers with Orders
Swipe um das Menü anzuzeigen
Aufgabe
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ösung
War alles klar?
Danke für Ihr Feedback!
Abschnitt 1. Kapitel 2
single