title: How to retrieve data by comparing equality of the value of the sum of some rows with other row value from one table?
body: <p><a href="https://i.stack.imgur.com/unfGV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/unfGV.png" alt="I have a table that contain reports for transactions" /></a></p>
  <p>I would like to retrieve the records that are not equal in sum of two credit amount and debit amount those have same journal id.</p>