Reputation: 2949
In my Project, I hava a data base table is like that
This query in JPQL query
I have find select c from SalesInvoice c where c.invoicedate BETWEEN :from AND :to
how to find sum of amount field.
I need find data field and summation of amount field one query
tableview.setItem(query)
tableView will persistUpvotes: 0
Views: 64
Reputation: 2729
Use Aggregate function SUM
to find the sum and group by
on the column which you want to find the sum...
Upvotes: 1