MoebiuS
29th June 2011, 12:35
Hi,

The attached query gives me a sum. I would divide this result by 60, but how?

boXer14
29th June 2011, 12:51
hello,

try this, please

domain tcmcs.double tempo

select
tipcs020.cprj,
tipcs021.dsca,
sum(tirou102.rutm):tempo
from
...
where
...
group by
...
selecto
tempo = tempo / 60
endselect


Olivier

MoebiuS
29th June 2011, 13:33
In attached my new code, but there's something wrong because I obtain a syntax error:

"SELECT" expected instead of "domain"

zardoz
29th June 2011, 13:44
Simply, the code is valid for script, not for easy sql.

Suggestion:
Use your original query and modify the reportfield instead.

MoebiuS
30th June 2011, 10:18
I'm really sorry, but I do not know how do it.
Some might suggest any solution? Thanks!

boXer14
30th June 2011, 10:52
i guess zardoz suggestion is to divide value in reportfield... if i understood well ;)

see attachment

MoebiuS
30th June 2011, 11:07
Great, it works!