-1
I have the following appointment:
SELECT SUM(ValorBruto)
FROM faturas
WHERE DataCaptura between'2018-10-01' and '2018-10-30'
The result is displayed to 4 decimal places. It would cost to view only 2. How do I?
-1
I have the following appointment:
SELECT SUM(ValorBruto)
FROM faturas
WHERE DataCaptura between'2018-10-01' and '2018-10-30'
The result is displayed to 4 decimal places. It would cost to view only 2. How do I?
0
Try something like that
SELECT round(CAST(float8 SUM(ValorBruto) as valorBruto),2)
FROM faturas
WHERE DataCaptura between'2018-10-01' and '2018-10-30'
Browser other questions tagged postgresql
You are not signed in. Login or sign up in order to post.
Did not work :( Incorrect syntax near 'SUM'
– Programmer
Use the to_char function to format the view the way you want it.
– anonimo