I have a joint table of user id and test that they took id. How can I write Hibernate query that shows which test was taken most often?
In this case I just need to get number 1 as a result:
user_id test_id
23 1
24 1
25 1
53 32
76 32
77 1
78 1