Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Вивчайте Challenge: Products Never Ordered | Subqueries in E-commerce Analytics
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
Subqueries in SQL

bookChallenge: Products Never Ordered

Завдання

Swipe to start coding

Identify all products that have never been ordered by querying the products table for entries whose product_id does not appear in the orders table.

  • Select all columns from the products table.
  • Use a subquery to find all product_id values present in the orders table.
  • Return only those products whose product_id is not present in the result of the subquery.

Рішення

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

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

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

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

single

Запитати АІ

expand

Запитати АІ

ChatGPT

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

close

bookChallenge: Products Never Ordered

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

Завдання

Swipe to start coding

Identify all products that have never been ordered by querying the products table for entries whose product_id does not appear in the orders table.

  • Select all columns from the products table.
  • Use a subquery to find all product_id values present in the orders table.
  • Return only those products whose product_id is not present in the result of the subquery.

Рішення

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

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

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

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

single

some-alt