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

bookChallenge: Find Customers with Orders

Tâche

Swipe to start coding

Write a query to return the names of all customers who have placed at least one order. Use an INNER JOIN between the customers and orders tables to accomplish this.

  • Select the name column from the customers table.
  • Use an INNER JOIN to combine rows from customers and orders where the customer_id matches in both tables.
  • Ensure only customers who have at least one matching order appear in the result.

Solution

Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 1. Chapitre 2
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

Suggested prompts:

Can you explain this in simpler terms?

What are the main benefits or drawbacks?

Can you give me a real-world example?

close

bookChallenge: Find Customers with Orders

Glissez pour afficher le menu

Tâche

Swipe to start coding

Write a query to return the names of all customers who have placed at least one order. Use an INNER JOIN between the customers and orders tables to accomplish this.

  • Select the name column from the customers table.
  • Use an INNER JOIN to combine rows from customers and orders where the customer_id matches in both tables.
  • Ensure only customers who have at least one matching order appear in the result.

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 2
single

single

some-alt