Hibernate version: 2.1
Name and version of the database you are using: Oracle 8i
CODE HIBERNATE HSQL
List _list_ = session.createQuery(" select cout(*) " +
"from AuditServicio as a " +
"where a.Id = 1146 "+
"group by a.id,a.idServicio " +
"order by count(*)").list();
SQL*PLUS
select count(*)
from Audit_servicio
where id =1146
group by id, id_servicio
order by count(*)
Results Hibernate
1
1
1
.....
1
1
Results SQL*PLUS
COUNT(*)
----------
1
1
2
2
3
6
6
6
9
14
15
COUNT(*)
----------
29
61
77
108
134
i can't understand, could help me, please
|