• Thank you for the reply tried your sql code the problem is that the amounts are varying in free column and dollars column?

    Before that in free column for particular system its shown as 414 after rewriting as per your code its showing the free column as 2898

    Not sure why amounts are varying.