We help IT Professionals succeed at work.
Get Started

Transform transactions

JimiJ13
JimiJ13 asked
on
444 Views
Last Modified: 2014-05-22
Dear Expert,

I have this transaction table

control         stock_code          action_date           qty      price
IA 001            1001           2014-03-31           -1      10
RR 001                  1001           2014-03-01            5      10
RR 002                  1001           2014-04-03            5      9
WIR 001          1001           2014-03-05           -2      10


How can Transform its presentation into this?:

control    stock_code action_Date qty         value       run_qty     run_val     price
---------- ---------- ----------- ----------- ----------- ----------- ----------- -----------
RR 001     1001       2014-03-01    5           50          5           50          10
WIR 001    1001       2014-03-05    -2          -20         3           30          10
IA 001     1001       2014-03-31    -1          -10         2           20          10
RR 002     1001       2014-04-03    5           45          7           65          9

Any offered solution would be highly appreciated.
Comment
Watch Question
Database Engineer
CERTIFIED EXPERT
Top Expert 2005
Commented:
This problem has been solved!
Unlock 1 Answer and 18 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE