Business Intelligence Path · Mission 17 of 25Hard

Find products with no sales last quarter

Use NOT EXISTS with correlated subqueries to find missing relationships

Back to Business Intelligence

The Brief

Priya NairHead of Productproduct-analytics

Which products had zero sales in Q4 2025 (October through December)? I want to see the product name, category, and unit price for every product that did NOT appear in any Q4 2025 sale. We might need to discontinue some underperformers.

You'll practice

NOT EXISTSCorrelated subquery

Tables available

dim_productsfact_sales

Hints (3)

Each hint you reveal reduces the XP you can earn. Try the query first.

Hint 1

Use NOT EXISTS with a correlated subquery: WHERE NOT EXISTS (SELECT 1 FROM fact_sales WHERE product_id = p.product_id AND ...date conditions...)

Hint 2

Q4 2025 = sale_date between '2025-10-01' and '2025-12-31'

Hint 3

Be careful with the trailing-space duplicate 'Wireless Mouse ' — both versions should appear if they had no Q4 sales