I try to make TOTAL_MONEY to this format "123,456,789" (with commas).
select entity_id,
'the sum is:' || to_char(TOTAL_MONEY, ',') as text_msg
from(
select entity_id,
sum(volume) as TOTAL_MONEY
from procurement) t
but it doesn't work. I don't find here something useful.
Can you help me with that?