我对 HQL 查询有一些问题。我会像这样使用带有别名的子查询
select distinct a.some1, count(a.some2),
(Select count(z.any), z.any.any_id as v from Z z where
z.level=4) as "zoo", azc.a.any_id
from A a
where a.z.level=4
zoo.v=a.z.m
但别名给我一个错误。问题出在哪里?