Challenge: Orders Without Customers
Aufgabe
Swipe to start coding
Write a query that uses a RIGHT JOIN to list all orders and their customer names. If an order does not have a matching customer, show NULL for the customer name.
- Select the order ID, order date, and amount from the
orderstable. - Select the customer name from the
customerstable. - Use a RIGHT JOIN to include all orders, even those without a matching customer.
- Show NULL for the customer name if an order does not have a matching customer.
Lösung
War alles klar?
Danke für Ihr Feedback!
Abschnitt 1. Kapitel 7
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 that in simpler terms?
What are the main benefits of this approach?
Are there any common mistakes to avoid with this?
Großartig!
Completion Rate verbessert auf 4.76
Challenge: Orders Without Customers
Swipe um das Menü anzuzeigen
Aufgabe
Swipe to start coding
Write a query that uses a RIGHT JOIN to list all orders and their customer names. If an order does not have a matching customer, show NULL for the customer name.
- Select the order ID, order date, and amount from the
orderstable. - Select the customer name from the
customerstable. - Use a RIGHT JOIN to include all orders, even those without a matching customer.
- Show NULL for the customer name if an order does not have a matching customer.
Lösung
War alles klar?
Danke für Ihr Feedback!
Abschnitt 1. Kapitel 7
single