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

bookChallenge: Orders Without Customers

Tarefa

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.

Solução

Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 1. Capítulo 7
single

single

Pergunte à IA

expand

Pergunte à IA

ChatGPT

Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo

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

Deslize para mostrar o menu

Tarefa

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.

Solução

Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 1. Capítulo 7
single

single

some-alt