The following code shows how to use GROUP BY and HAVING clause in JPQL. List l = em.createQuery( "SELECT d.name, AVG(e.salary) FROM Department d JOIN ...
確定! 回上一頁