Forum Discussion

PSTyler's avatar
PSTyler
Occasional Contributor
9 years ago

How to get a database result of Sum of Amount column from database result?

I tried this     def q2 = "Select SUM(Amount) from abcd dabase.Data.FeeInstance where value= x"     def result1 = db.rows(q2)     assert result1.size() == 1     dbAmount = result1.get(0)    log....