AnPe
AnPe

Reputation: 33

How to translate a SQL query to a HQL one?

How can the following SQL query be translated into a HQL query?

select c.*, count(o.*)

from Cooperativa as c
     left join Operatore as o on c.id = o.id_cooperativa

where c.flag_cancellazione = 0

group by c.id 

order by c.id desc

Thanks.

Upvotes: 0

Views: 1578

Answers (1)

Related Questions