S
sean sobey
Hello everyone,
I am trying to to get the top 10 sold amount for various products by a sales
person in tha past 40 days . So I write something like this:
select top ten product, sum(soldamount), sum(orderedQuantity), salesman
where salesman = 'Joe Blow' and (select getdate()) - 40
group by product, soldamount, orderedQuanitity, salesman
order by product
This does not give me what I want. The numbers returned are not accurate at
all. Am I missing something?
Thank you for putting me out of my misery,
I am trying to to get the top 10 sold amount for various products by a sales
person in tha past 40 days . So I write something like this:
select top ten product, sum(soldamount), sum(orderedQuantity), salesman
where salesman = 'Joe Blow' and (select getdate()) - 40
group by product, soldamount, orderedQuanitity, salesman
order by product
This does not give me what I want. The numbers returned are not accurate at
all. Am I missing something?
Thank you for putting me out of my misery,