Challenge: Products Never Ordered
Opgave
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
productstable. - Use a subquery to find all
product_idvalues present in theorderstable. - Return only those products whose
product_idis not present in the result of the subquery.
Løsning
Var alt klart?
Tak for dine kommentarer!
Sektion 1. Kapitel 4
single
Spørg AI
Spørg AI
Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat
Suggested prompts:
Can you explain this in simpler terms?
What are the main points I should remember?
Can you give me an example?
Fantastisk!
Completion rate forbedret til 5.56
Challenge: Products Never Ordered
Stryg for at vise menuen
Opgave
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
productstable. - Use a subquery to find all
product_idvalues present in theorderstable. - Return only those products whose
product_idis not present in the result of the subquery.
Løsning
Var alt klart?
Tak for dine kommentarer!
Sektion 1. Kapitel 4
single