Hi,
I am having a problem with a group by query that sums up a field that is defined as NUMBER(10,2). The result that comes back is dropping off the 2 place holder on the right side of the decimal. Is there a way to sum and show both digits?
select journal_type, dr_cr_ind, sum(post_amt)
from other_journal
where fiscal_yr = 2006 and fiscal_period = 6 and journal_type = 'FT'
group by journal_type, dr_cr_ind
RESULT:
JO D SUM(POST_AMT)
-- - -------------
FT C 81999622.4
FT D 81999622.4
There is pl/sql logic that sums the results differently at month end and it detects the penny difference (05 compared to 06). I am trying to be proactive to catch an inbalance before the production job runs and fails. Then I can try and find the problem record during the day instead of in the middle of the night. Any help would be greatly appreciated.
Thank you for all your help
Tom
I am having a problem with a group by query that sums up a field that is defined as NUMBER(10,2). The result that comes back is dropping off the 2 place holder on the right side of the decimal. Is there a way to sum and show both digits?
select journal_type, dr_cr_ind, sum(post_amt)
from other_journal
where fiscal_yr = 2006 and fiscal_period = 6 and journal_type = 'FT'
group by journal_type, dr_cr_ind
RESULT:
JO D SUM(POST_AMT)
-- - -------------
FT C 81999622.4
FT D 81999622.4
There is pl/sql logic that sums the results differently at month end and it detects the penny difference (05 compared to 06). I am trying to be proactive to catch an inbalance before the production job runs and fails. Then I can try and find the problem record during the day instead of in the middle of the night. Any help would be greatly appreciated.
Thank you for all your help
Tom