In a Ruby case statement you can say
name = case foo
when 'bar', 'baz', 'bof' then 'Tom'
when 'qux' then 'Jerry'
end
and in a C/C++ switch statement you can stack cases on top of each other:
switch(foo) {
case 'bar' :
case 'baz' :
case 'bof' :
...
but is there anything similar in SQL/Postgres? Or do you have to spell it out for each option eg.
CASE foo
WHEN bar THEN 'Tom'
WHEN baz THEN 'Tom'
WHEN bof THEN 'Tom'
WHEN qux THEN 'Jerry'
END