Got this now. Thanks for your help. For reference, here is the code I am using:
select s.ProductID,(select top 1 CustomerID
from Order
where ProductID = s.ProductID
group by CustomerID
order by sum(Quantity) desc) CustomerID
from Stock s
I am trying to write a query that returns the customer who has bought the most of a product.
I have an Order table with CustomerID, ProductID and QtySold (amongst other things, obviously!!). If I do:
select CustomerID,ProductID,sum(QtySold) SumQtySold
into #Temp
from orders
group by...
Has anyone tried using Crystal Reports 9 with a Blackberry handheld? If so, how did you do it and what was the level of success. There seems to be very little documentation out there on this
Thanks
Alex
I had this problem. Uninstalling and re-installing the BES to version 3.6SP1a fixed the problem (I had to have the full version sent to me on CD as it is not available for download). Crude but effective!!
Have a look at DataRocket from ESB Technologies - http://www.datarocket.co.uk I have had this demo'd and it look really good. Not actually using it in anger at the moment
Found this one. I am running SQL7 SP3 and OLAP SP3
I was using the OLAP services Add-in to schedule the jobs. If you save the jobs as 'SQL 2000 encryption', they hang. If you take this off, they work.
Cheers
Alex
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.