CASE WHEN THEN END with PostgreSQL

Is it possible to use CASE WHEN (boolean conditional) THEN (____) END?

Redash isn’t lighting up “THEN” in blue and is throwing up a syntax error on it.

Why isn’t this working?

What database do you use? Whether it’s supported depends on your database.

A coworker helped me with this. Apparently it was just a normal syntax error after all. Case functionality is fine. Newbie mistake!

1 Like