I need to get the total value of the VOL field (image below), it is already generated by the SUM function. It can be in another query. All periodic tithe is required.
ex: total = VOL (7.6890028) - > sum of the 4 lines of column VOL
Something like:
Select campo1,
sum(valor1) valor
from tabela
group by cube (campo1)
You can do something like this
Select sum(a.VOL) from (
*SUA QUERY AQUI*) a