I have searched this site extensively but cannot find a solution.
Here is the example of my query:
SELECT ActivityID, Hours = (CASE
"Case" can return single value only, but you can use complex type:
create type foo as (a int, b text); select (case 1 when 1 then (1,'qq')::foo else (2,'ww')::foo end).*;