Monthly Sales

  Output: HTML PDF CSV
Style Table Form
Customer ANY
Order Date  -
Unable To Continue:
Notice: A non well formed numeric value encountered
Main Report Query - Error: Query Failed

SELECT, DATE_FORMAT(orderdate, "%Y %M") month, sum((order_details.unitprice - discount) * order_details.quantity) total_discounted_sales, sum((order_details.unitprice) * order_details.quantity) total_sales FROM customers join orders on customers.customerid = orders.customerid join order_details on orders.orderid = order_details.orderid join products on order_details.productid = products.productid WHERE 1 = 1 AND DATE(orderdate) BETWEEN '1996-01-01' AND '1998-12-31' GROUP BY country, month order by country, month

Status 0 -