Er is geen IF expr THEN result ELSE result END syntaxis voor normale SQL-query's in Postgres. Omdat er geen IF() . is functioneren zoals in MySQL, moet u CASE . gebruiken :
select (
case (select '1')
when '1' then
case when 1=1 then 0.30::float else 0.50::float end
else
1.00::float
end
);