这是我的SQL查询:
SELECT tab2.Tavolo, MIN(mycount) as num_posti_min
FROM (
SELECT tab1.Tavolo, COUNT(tab1.Tavolo) as mycount
FROM posto as tab1
WHERE tab1.disponibilita = true
GROUP BY tab1.Tavolo
HAVING COUNT(tab1.Tavolo) >= 1
) as tab2;
如何在HQL中转换它?
那我怎么能读出它的结果呢?
答案 0 :(得分:0)