Hi Berly,
Please make use of this HQl:
HQL : Trying to fetch count in each genders for their name title. ------------------------------------------------------------- select count(p.title.identifier),p.title.identifier,p.gender.identifier from person.PersonSummary p group by p.title.identifier, p.gender.identifier
SQL : Query fired after execution of above HQL query ------------------------------------------------------------- select count(personsumm0_.ctitle_identifier) as col_0_0_, personsumm0_.ctitle_identifier as col_1_0_, personsumm0_.CGENDE_IDENTIFIER as col_2_0_ from persons personsumm0_ group by personsumm0_.ctitle_identifier , personsumm0_.CGENDE_IDENTIFIER
hope this helps u :)
_________________
Cheers! Shynate mailto:shynate26@gmail.com www.CSSCORP.com
|