dbTalk Databases Forums  

Derive Period Balances from YTD Balances

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss Derive Period Balances from YTD Balances in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
mpal
 
Posts: n/a

Default Derive Period Balances from YTD Balances - 09-18-2009 , 11:25 AM






Hello everyone,

I was wondering if someone might have a suggestion on what would be
the best approach to derive period balances from YTD balances
(assuming that each year has 12 periods)


Sample scenario --> the expected result is shown in the last column

Cost_Center Project_Num Period YTD_Amount
Period_Amount (to be calculated)
================================================== =========================
0100 111 200812
500 500
0100 111 200908
100 100
0100 111 200909
120 20
0100 112 200811
35 35
0100 112 200902
-10 -10
0100 112 200903
0 10
0200 111 200811
45 45
0200 111 200901
30 30


Any suggestion would be appreciated

Thanks,

Milos

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.