Beginner |
|
Joined: Fri Sep 28, 2007 4:58 am Posts: 21 Location: Chennai, India
|
Hi,
i want to know how to write this two query in Hibernate using createCriteria along with projections.
1.
select sum(setteld_bal) from account_balances where clientaccount = 84 and bal_type_ind=1
union
select sum(setteld_bal) from account_balances where clientaccount = 84 and bal_type_ind=2
2.
select sum(setteld_bal), bal_type_ind from account_balances where clientaccount = 84 and bal_type_ind in (1,2)
group by bal_type_ind
_________________ Purushotham Podaralla
|
|