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

bookChallenge: Orders Without Customers

Opgave

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.

Løsning

Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 1. Kapitel 7
single

single

Spørg AI

expand

Spørg AI

ChatGPT

Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat

close

bookChallenge: Orders Without Customers

Stryg for at vise menuen

Opgave

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.

Løsning

Switch to desktopSkift til skrivebord for at øve i den virkelige verdenFortsæt der, hvor du er, med en af nedenstående muligheder
Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 1. Kapitel 7
single

single

some-alt