I have a field value(decimal(23, 2))
and I am querying over it like this:
sum(value)
and as output i get 1200000.32
I am trying to cast it to currency to get $1.200.000,32
like this:
cast(sum(value) as money) == FAIL
sum(value::money) == FAIL
cast(sum(gmv::numeric) as money) == FAIL
How can I get the desired currency type?