Challenge: Orders Without Customers
Taak
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.
Oplossing
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 1. Hoofdstuk 7
single
Vraag AI
Vraag AI
Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.
Geweldig!
Completion tarief verbeterd naar 4.76
Challenge: Orders Without Customers
Veeg om het menu te tonen
Taak
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.
Oplossing
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 1. Hoofdstuk 7
single