• Koen Verbeeck (10/3/2013)


    To get some decent answers, it might help if you post table DDLs, sample data and desired output.

    Attached is a sample data set from excel, that I'm creating in SQL