Answers for "spring jpa group by query method"

-1

spring jpa group by query method

@Query("SELECT c.year, COUNT(c.year) FROM Comment AS c GROUP BY c.year ORDER BY c.year DESC")
	List<Object[]> countTotalCommentsByYear();
Posted by: Guest on November-11-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language