what's wrong with this HQL query:
select ( ( select sum(base)/8 FROM com.agitech.erp.model.rhp.RhpEmployeRubric where ...) + ( select sum(base)/8 FROM com.agitech.erp.model.rhp.RhpEmployeRubric where ...) )
An exception:
unexpected end of subtree
I will also try
select ( select sum(base)/8 FROM RhpEmployeRubric where ...) as sum1, ( select sum(base)/8 FROM RhpEmployeRubric where ...) as sum2
same exception!
hibernate hql
Nassim MOUALEK
source share