just an idea to use a derived table for that like this:SELECTdt.Budget,title,priceFROMtitles tjoin (select title_id, CASE WHEN price > 20.00 THEN 'Expensive' WHEN price BETWEEN 10.00 AND 19.99 THEN 'Moderate' WHEN price < 10.00 THEN 'Inexpensive' ELSE 'Unknown' END AS Budgetfrom titles)dton t.title_id = dt.title_idGROUP BYdt.Budget,t.title,t.priceORDER BYdt.Budget,title,price
No, you're never too old to Yak'n'Roll if you're too young to die.