Challenge: Orders Without Customers
Tâche
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.
Solution
Tout était clair ?
Merci pour vos commentaires !
Section 1. Chapitre 7
single
Demandez à l'IA
Demandez à l'IA
Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion
Génial!
Completion taux amélioré à 4.76
Challenge: Orders Without Customers
Glissez pour afficher le menu
Tâche
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.
Solution
Tout était clair ?
Merci pour vos commentaires !
Section 1. Chapitre 7
single