SELECT *, yrs_to_mat,
CASE
WHEN < 3 THEN "under3"
WHEN => 3 AND < 5 THEN "3to5"
WHEN => 5 AND < 10 THEN "5to10"
WHEN => 10 AND < 15 THEN "10to15"
WHEN => 15 THEN "over15"
ELSE null END AS maturity_bucket
FROM matyrs;
Error in SQL statement: ParseException:
[PARSE_SYNTAX_ERROR] Syntax error at or near 'THEN'(line 3, pos 15)
== SQL ==
SELECT *, yrs_to_mat,
CASE
WHEN < 3 THEN "under3"
---------------^^^
WHEN => 3 AND < 5 THEN "3to5"
WHEN => 5 AND < 10 THEN "5to10"
WHEN => 10 AND < 15 THEN "10to15"
WHEN => 15 THEN "over15"
ELSE null END AS maturity_bucket
FROM matyrs