Reegan Miranda
Reegan Miranda

Reputation: 2949

How to find with data and sum of field

In my Project, I hava a data base table is like thatenter image description here

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

Upvotes: 0

Views: 64

Answers (1)

G one
G one

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

Related Questions