I want to compute the percentage of people who are not active divided by the percentage of people being active.
I will do something like the following HQL query but it did not work:
(select count(x) from People as x where x.active=false) /
(select count(x) from People as x where x.active=true)
How can I do that?