I'm wanting to change a select value depending on the where clause. Is something like the following possible in any way?
SELECT b
FROM table
WHERE
IF date = '2016-03-24'
b = 1
ELSE IF date > date '2016-03-24' - 7 AND date < '2016-03-24'
b = 2
ELSE
b = 1
ORDER BY date
LIMIT 1