jpa - how get max value from a count on JPQL -


im working jpa jpql querys im not expert,just started studing days ago. have query

select u.nombres, count(p) count usuario u,postpaso pp join pp.post p u.idusuario = pp.idusuario group u.idusuario order count desc 

it returns number of post of each user, want show user higher number of post, have tried max i've had syntax errors,i want in query not in java layer have found answer in other pages


Comments

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -