Challenge: Products Never Ordered
Oppgave
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
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 1. Kapittel 4
single
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår
Fantastisk!
Completion rate forbedret til 5.56
Challenge: Products Never Ordered
Sveip for å vise menyen
Oppgave
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
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 1. Kapittel 4
single