login
Forgot?

Don't have an account? Register one now!

Login

Customise SQL report and automate running

Bids 
14
Avg Bid
£183 GBP
€228 EUR
CLOSED
  • Project ID:

    1463550
  • Project Type:

    Fixed
  • Budget:

    £20-£250 GBP
    (Approx. €24-€312 EUR)

Project Description:

We run a Volusion web store, which has a sales report built into it, which I need to customise to
**remove 'order details count' and 'quantity' **
**but add 'payment method'.**

In a perfect world, I would like the report to run automatically at 00:00 on the last day of each month and email itself to me.
The report should be sorted by payment method (ie VISA, MASTERCARD, PAYPAL) with a total for each and then by date.
So to summarise:
Fields required:
OrderDate
Orders_count
paymentmethod
paymentamount
payment authorized
payment received
salestax
shipping cost
COGS
Profit
Profit margin
MONTHLY TOTALS FOR ALL NUMERICAL FIELDS

If there is any way that the report can be created as a well laid out pdf file, that would be amazing. I dont know if this is possible though.

Here is sql from the current report:


SELECT Orders.Year,Orders.Orders_Count,Orders.PaymentAmount,Orders.Total_Payment_Authorized,Orders.Total_Payment_Received,Orders.SalesTax1,Orders.SalesTax2,Orders.SalesTax3,Orders.TotalShippingCost,Orders.OrderDetails_Count,Orders.Quantity,Orders.COGS,Orders.Profit,Orders.ProfitMargin FROM (SELECT Orders.Year,Orders.Orders_Count,Orders.PaymentAmount,Orders.Total_Payment_Authorized,Orders.Total_Payment_Received,Orders.SalesTax1,Orders.SalesTax2,Orders.SalesTax3,Orders.TotalShippingCost,OrderDetails.OrderDetails_Count,OrderDetails.Quantity,OrderDetails.COGS,OrderDetails.Profit,OrderDetails.ProfitMargin FROM (SELECT DATEPART(YY, Orders.OrderDate) AS Year, Max(Orders.OrderDate) As OrderDate ,Max(Orders.ShipDate) As ShipDate,Count(Orders.OrderID) As Orders_Count,Sum(Orders.PaymentAmount) AS PaymentAmount,Sum(Orders.Total_Payment_Authorized) AS Total_Payment_Authorized,Sum(Orders.Total_Payment_Received) AS Total_Payment_Received,Sum(Orders.SalesTax1) AS SalesTax1,Sum(Orders.SalesTax2) AS SalesTax2 ,Sum(Orders.SalesTax3) AS SalesTax3,Sum(Orders.TotalShippingCost) AS TotalShippingCost FROM (((Orders WITH(NOLOCK) LEFT JOIN PaymentMethods WITH(NOLOCK) ON Orders.PaymentMethodID = PaymentMethods.PaymentMethodID) LEFT JOIN ShippingMethods WITH(NOLOCK) ON Orders.ShippingMethodID = ShippingMethods.ShippingMethodID) LEFT JOIN Customers WITH(NOLOCK) ON Orders.CustomerID = Customers.CustomerID) WHERE Orders.OrderStatus <> 'Cancelled' GROUP BY DATEPART(YY, Orders.OrderDate)) Orders INNER JOIN (SELECT DATEPART(YY, Orders.OrderDate) AS Year, Count(OrderDetails.OrderDetailID) As OrderDetails_Count,Sum(OrderDetails.Quantity) AS Quantity,Sum(OrderDetails.Vendor_Price * OrderDetails.Quantity) AS COGS,Case When SUM(Vendor_Price) IS NULL Then null Else Sum((Case When OrderDetails.ProductCode like 'DSC-%' Then OrderDetails.ProductPrice - ISNULL(OrderDetails.Vendor_Price,0) Else OrderDetails.ProductPrice - OrderDetails.Vendor_Price End) * OrderDetails.Quantity) End AS Profit,CASE SUM(OrderDetails.ProductPrice * OrderDetails.Quantity) WHEN 0 THEN 0 ELSE ROUND(((SUM(OrderDetails.ProductPrice * OrderDetails.Quantity) - SUM(OrderDetails.Vendor_Price * OrderDetails.Quantity)) / SUM(OrderDetails.ProductPrice * OrderDetails.Quantity)) * 100, 1) END AS ProfitMargin FROM (((Orders WITH(NOLOCK) LEFT JOIN PaymentMethods WITH(NOLOCK) ON Orders.PaymentMethodID = PaymentMethods.PaymentMethodID) LEFT JOIN ShippingMethods WITH(NOLOCK) ON Orders.ShippingMethodID = ShippingMethods.ShippingMethodID) LEFT JOIN Customers WITH(NOLOCK) ON Orders.CustomerID = Customers.CustomerID) LEFT JOIN OrderDetails WITH(NOLOCK) ON Orders.OrderID = OrderDetails.OrderID WHERE Orders.OrderStatus <> 'Cancelled' GROUP BY DATEPART(YY, Orders.OrderDate)) OrderDetails ON Orders.Year = OrderDetails.Year) Orders ORDER BY Orders.Year DESC

Skills required:

SQL

Project posted by:

dtrehane United Kingdom
5.0 (5 Reviews)

Last seen: Mar 03, 2012 12:41 PM CET

If you are the project creator or one of the bidders, please Log In for more options.


Awarded Bids

main_img.jpg
CodeGuru123
United States From United States    Premium Membership     Offline
  Foundation LimeExchange Member
 Accepted
£250 in 7 days 
£125 Milestone Requested
3 months ago
4.4

6.0

11 Reviews
65% Completion Rate
Please check message.

All Bids ()

2322723_100.jpg
forrestwang
China From China    Premium Membership     Online
  General Orientation (85%, 95th percentile)
  Foundation EUFreelance.com Member
£280 in 7 days 
£140 Milestone Requested
3 months ago
5.0

3.9

6 Reviews
75% Completion Rate
hi sir, I have the related experience you need.
IMG_2712.jpg
DeoTech
Russian Federation From Russian Federation        Offline
£150 in 3 days 
£75 Milestone Requested
3 months ago
3.7

3.4

3 Reviews
100% Completion Rate
Hi! Kindly see PM. Regards.
sc-logo.png
sharpcodernet
Moldova From Moldova    Standard Membership     Offline
  Freelancer Orientation (80%, 97th percentile)
  Participated in the 2012 Freelancer.com Scavenger Hunt
£200 in 7 days 
£20 Milestone Requested
3 months ago
5.0

3.1

2 Reviews
71% Completion Rate
Hi, .NET developer with 7+ years of experience is ready to help you. Please, check PMB for more details. Thanks.
pl2k
United States From United States        Offline
£250 in 30 days 
£125 Milestone Requested
3 months ago
Please see my pm
cslau5
Australia From Australia        Offline
£150 in 2 days 
£50 Milestone Requested
3 months ago
Hi, I am new to here but confident to produce the report in quick and professional manner. Details in PM. Regards Stanley
Me.jpg
AviCortex
India From India        Offline
£35 in 10 days 
£18 Milestone Requested
3 months ago
Respected Sir. 7 years experience on sql. Interested. Plz contact. Thanks.
Sudip.jpg
sudip94chatt
India From India        Offline
£230 in 15 days 
£115 Milestone Requested
3 months ago
Hi , Good Day. I have very good team of specialist who can be able to provide smart solution in C#, ASP.net, Oracle and SQL Server from India. With best regards, Sudip Chatterjee
ajitjha31
India From India        Offline
£200 in 5 days 
£100 Milestone Requested
3 months ago
I understand the project need.
minhaj.JPG
DreamCoders
India From India        Offline
£50 in 1 day 
£25 Milestone Requested
3 months ago
Hi I am working as Data base Developer from 9 years and have developed many automated SQL Scripts and Report. Please let me know that which Database Software are you using ... Thanks
janczewski.jpg
actio
Poland From Poland        Offline
  Freelancer Orientation (80%, 97th percentile)
£100 in 5 days 
£10 Milestone Requested
3 months ago
0.0

0.0

0 Reviews
50% Completion Rate
Hello please check PMB
murli-photo.jpg
ninecreatives
India From India        Offline
£250 in 3 days 
£75 Milestone Requested
3 months ago
0.0

0.0

0 Reviews
61% Completion Rate
Please check PM !
freelancer.jpg
udanaudayanga
Sri Lanka From Sri Lanka        Offline
£160 in 2 days 
£80 Milestone Requested
3 months ago
0.0

0.0

0 Reviews
100% Completion Rate
Helloo.. Ready to start, Send me FTP and SQL login.. Yes it is possible to create a pdf file and mailed you.. Thanks -Udana-
takitsolutions
United Kingdom From United Kingdom        Offline
£250 in 1 day 
£125 Milestone Requested
3 months ago
Hi there I am a London based sql profi and am sure I can deliver you the task in a short time. Regards