Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Challenge: Products Never Ordered | Subqueries in E-commerce Analytics
Subqueries in SQL
Sektion 1. Kapitel 4
single

single

bookChallenge: Products Never Ordered

Stryg for at vise menuen

Opgave

Stryg for at begynde at kode

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.

Løsning

Switch to desktopSkift til skrivebord for at øve i den virkelige verdenFortsæt der, hvor du er, med en af nedenstående muligheder
Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 1. Kapitel 4
single

single

Spørg AI

expand

Spørg AI

ChatGPT

Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat

some-alt