Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Apprendre Challenge: Orders Without Customers | Core Join Types and Their Applications
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
SQL Joins in Depth

bookChallenge: 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 orders table.
  • Select the customer name from the customers table.
  • 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 ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 1. Chapitre 7
single

single

Demandez à l'IA

expand

Demandez à l'IA

ChatGPT

Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion

close

bookChallenge: 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 orders table.
  • Select the customer name from the customers table.
  • 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

Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 1. Chapitre 7
single

single

some-alt