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

bookChallenge: Orders Without Customers

Завдання

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.

Рішення

Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 1. Розділ 7
single

single

Запитати АІ

expand

Запитати АІ

ChatGPT

Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат

Suggested prompts:

Can you explain that in simpler terms?

What are the main benefits of this approach?

Are there any common mistakes to avoid with this?

close

bookChallenge: Orders Without Customers

Свайпніть щоб показати меню

Завдання

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.

Рішення

Switch to desktopПерейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 1. Розділ 7
single

single

some-alt