• I edited and added the comma. Sorry. Current result is

    EffectiveDateHolderHQuantityTQuantityPercentage

    2001-01-01John 10 10 100

    2001-01-02John 10 20 50

    2001-01-02Peter 10 20 50

    2001-01-03John 5 15 33

    2001-01-03Peter 10 15 66

    2001-01-04Peter 10 10 100