SQL Practice Logo

SQLPractice Online

Scenario SQL Question

Classify Products by Price Range

Build mastery in Case Statements with this scenario-based SQL challenge and live execution support.

Problem Statement

Classify products into categories: 'Out of Stock' (price = 0), 'Consumer Goods' (price 1-100), 'Electronics' (price 101-500), 'Luxury Items' (price 501-1500), 'Extra Items' (price > 1500). Return product name, price, and category.

Relevant Tables

products

SQL Concepts Used in This Scenario

Strengthen your understanding with these targeted learning topics: