Challenge: Orders Without Customers
Tarea
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.
Solución
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Sección 1. Capítulo 7
single
Pregunte a AI
Pregunte a AI
Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla
Genial!
Completion tasa mejorada a 4.76
Challenge: Orders Without Customers
Desliza para mostrar el menú
Tarea
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.
Solución
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Sección 1. Capítulo 7
single