• amr.moussa.87 (6/19/2014)


    i have tried many thing

    i have table called visiting, it have two column (visiting date) and ( cost ) like that

    visiting_date cost

    20-6-2014 50

    20-6-2014 50

    21-7-2014 200

    21-7-2014 200

    i want to make view that can sum cost of each month individual so output will be

    month income

    6 100

    7 400

    than you for helping

    What do you want to display when the year changes over?

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)