AltQuery
Initializing SQL database...
Back to Questions

CASE Statement - Categorize #41

medium

Categorize values as High (>200), Medium (100-200), or Low (<100). Multiple WHEN conditions or CASE statements combined with other operations. The conditions are evaluated in order, so put more specific conditions first.

Practice with:

Database Schema

data

Data records

idnamevalue

Expected Output

Click "Show" to see what the correct output should look like.Tip: Try solving it yourself first for better learning!

SQL Editor

Loading...

Start typing for autocomplete

AI Help

Ask for help!