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

bookChallenge: Find Customers with Orders

Task

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

Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 1. ChapterΒ 2
single

single

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

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

Swipe to show menu

Task

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 desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 1. ChapterΒ 2
single

single

some-alt