This content has been marked as final. Show 2 replies
If you look at the JPQL you'll find your answer, which is why you haven't gotten an answer. However, I'll give it to you:
select sum( d.amount) from Delivery d[/code/ This will return the sum of the amount field for every Delivery.
And if I only want a sum of deliveries before a certain date? Referring to the map key has been the crux of the problem!