M
Mary
Hello,
Glad there someone helping out on a Sunday.
I created a ranking report listing the total items sold per Salesman
throughout the year from the most to the least.
SELECT COUNT(item_ID) AS Total, Salesman_Lastame, Salesman_ID
FROM items INNER JOIN
salesmen ON dbo.items.Salesman_ID =
dbo.salesmen.Salesman_ID AND
dbo.items.Salesman_ID = dbo.salesmen.Salesman_ID
GROUP BY dbo.salesmen.Salesman_Lastname, dbo.salesman.Salesman_ID
Salesman TotalTY 1Q 2Q 3Q 4Q
John Doe 324 ? ? 0 0
Mary Joe 257 ? ? 0 0
....
Besides the total obtained, I'd like to divide the results in quarters and
hopefully, in months.
Can it be done and if so, how?
Thank you in advance for the help.
Mary
Glad there someone helping out on a Sunday.
I created a ranking report listing the total items sold per Salesman
throughout the year from the most to the least.
SELECT COUNT(item_ID) AS Total, Salesman_Lastame, Salesman_ID
FROM items INNER JOIN
salesmen ON dbo.items.Salesman_ID =
dbo.salesmen.Salesman_ID AND
dbo.items.Salesman_ID = dbo.salesmen.Salesman_ID
GROUP BY dbo.salesmen.Salesman_Lastname, dbo.salesman.Salesman_ID
Salesman TotalTY 1Q 2Q 3Q 4Q
John Doe 324 ? ? 0 0
Mary Joe 257 ? ? 0 0
....
Besides the total obtained, I'd like to divide the results in quarters and
hopefully, in months.
Can it be done and if so, how?
Thank you in advance for the help.
Mary