Challenge: Products Never Ordered
Tehtävä
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.
Ratkaisu
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 1. Luku 4
single
Kysy tekoälyä
Kysy tekoälyä
Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme
Suggested prompts:
Can you explain this in simpler terms?
What are the main points I should remember?
Can you give me an example?
Mahtavaa!
Completion arvosana parantunut arvoon 5.56
Challenge: Products Never Ordered
Pyyhkäise näyttääksesi valikon
Tehtävä
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.
Ratkaisu
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 1. Luku 4
single