I want to pull data based on sales personel from the past 24 months into a table. This may not be possible, but ideally I would want the table to be set up like this (just a quick show):
December 2012 November 2012 October 2012
Sold Bought Sold Bought Sold Bought
J.J.
R.M.
E.L.
So have a heading of the month/year and a sub heading of sold and bought, then have the sales person's name. Simply running
Shows what I want to, but not in the correct formatting, I spend endless amount of time formatting within Excel. Is the above possible, and if so how would I Set that up?
December 2012 November 2012 October 2012
Sold Bought Sold Bought Sold Bought
J.J.
R.M.
E.L.
So have a heading of the month/year and a sub heading of sold and bought, then have the sales person's name. Simply running
Code:
Select salesPerson, unitsSold, unitsPurchased, dateSold, datePurchased
FROM employeeSales
ORDER BY datePurchased DESC