Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprenda Challenge: Products Never Ordered | Subqueries in E-commerce Analytics
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
Subqueries in SQL

bookChallenge: Products Never Ordered

Tarefa

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.

Solução

Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 1. Capítulo 4
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 this in simpler terms?

What are the main points I should remember?

Can you give me an example?

close

bookChallenge: Products Never Ordered

Deslize para mostrar o menu

Tarefa

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.

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

single

some-alt