Challenge: Find Customers with Orders
Завдання
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
namecolumn from thecustomerstable. - Use an INNER JOIN to combine rows from
customersandorderswhere thecustomer_idmatches in both tables. - Ensure only customers who have at least one matching order appear in the result.
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 1. Розділ 2
single
Запитати АІ
Запитати АІ
Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат
Чудово!
Completion показник покращився до 4.76
Challenge: Find Customers with Orders
Свайпніть щоб показати меню
Завдання
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
namecolumn from thecustomerstable. - Use an INNER JOIN to combine rows from
customersandorderswhere thecustomer_idmatches in both tables. - Ensure only customers who have at least one matching order appear in the result.
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 1. Розділ 2
single