Hello, I have a report that needs developed in Coldfusion. However the report could be developed in ASP as well. It doesn't matter to me. I have attached the screen shot of the report that the SQL query generates and the code containing the query. The report lists all the customers that have purchased products in the last year. However here are the problems that need addressed.
1. I have to statically code the dates, instead of pulling today date - 12 months There must be a way to do this in SQL.
2. The report list multiple customers when they have placed multiple orders. I need it to list the customer and beside it display the number of times they orderd the product. I'm pretty sure this can be done with a sql statment (count) possible, but am not sure how to do it.
3. I need the results sorted by customers with most purchases first.
I have been using item number 500-101 to test with. I can provide other item numbers to test with it needed.
Can someone clean up this sql query for me and provide the solutions I need. I generally just need the query optimized, but if someone can provide a better report than the one I have laid out then there will be a 20 dollar bonus.
Thanks of course I need this yesterday, so I will accept quickly.
Thanks,
Chris
## Deliverables
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):
a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.
b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.
3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement). I will be available througout entire project to answer any questions and provide any help needed.
## Platform
Windows