Hello everyone,
I am writing an ASP script to display data from our sales reps in a tabular format with sums for each item (Style) per sales rep. I've searched all over here and google'd everything... UNIONS, JOINS, PIVOTS with no luck.
This is the table:
This is what I'd like to see:
Thanks in advance!
I am writing an ASP script to display data from our sales reps in a tabular format with sums for each item (Style) per sales rep. I've searched all over here and google'd everything... UNIONS, JOINS, PIVOTS with no luck.
This is the table:
Code:
Style Color SalesRep Units [CustNumb OrderDate ShipDate ETC....]
1234 black AAA 2
1234 black AAA 3
1234 black BBB 3
1234 black BBB 3
1234 black CCC 30
1234 black CCC 2
2344 green AAA 7
1234 white BBB 3
1234 white BBB 13
This is what I'd like to see:
Code:
Style Color AAA BBB CCC
1234 black 5 6 32
2344 green 7
1234 white 13
Thanks in advance!