Hello. I'm a problem and I can not see a way to solve it.
My data from the move table:
Myquery:
selectavg(m.valor)fromMovimentacaomwherem.tipo='SAIDA'groupbym.data;
Myresult:
I can not group the average by date (day). Even if I use distinct . Always returns all dates. If event I group by holder works, less with date. This is done by searching the JPA and also via the database.
The table was generated by JPA / Hibernate using Calendar for the date.
@Temporal(TemporalType.TIMESTAMP)
private Calendar data;
Does anyone see the problem?