1 2 3 4
/* syntax version 1 */ /* postgres can not */ SELECT sum(Math::Pow(cast(subkey as double), 2)) FROM plato.Input4;