By agirish
via jroller.com
Published: Nov 13 2012 / 08:38
In this blog post, lets try to use JPA to fetch summary of records from database. We often have a requirement where we need to provide a summary of the data present. For example, I want to get summary of results of a recently conducted exam. So from a database table, I need to get Summary containing count of students who have passed, got promoted or failed the exam. So our summary record shall have Passed, Promoted and Failed as columns. An SQL query to do similar task could be
Add your comment