Link Details

Link 877203 thumbnail
User 190684 avatar

By agirish
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
  • 2
  • 0
  • 628
  • 478

Add your comment

Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (2)

Voters Against This Link (0)

    Apache Hadoop
    Written by: Piotr Krewski
    Featured Refcardz: Top Refcardz:
    1. Play
    2. Akka
    3. Design Patterns
    4. OO JS
    5. Cont. Delivery
    1. Play
    2. Java Performance
    3. Akka
    4. REST
    5. Java