Here is the example 'sales' table of data
Here is the desired output Result Set
Here is an example of the undesired Result Set that would be generated from this SQL statement.
SELECT Vendor, SUM(Markdown), SUM(Regular), SUM(Promotion), SUM(Returned)
FROM sales
GROUP BY Vendor, Date
Is there a way to get the desired result set through just SQL?
We are running a SQL DB2 database on an IBM iSeries.
I do realize this is a very odd way to try to do this... we are just trying to find a way to get the result set back as needed, without having to do any manual conversion of the results through code.