I don't know if my query is correct. I want to group all the dates as one, but my query shows a null.
SELECT CustomerID,Cashier, OrderDate,SUM(Total) as totalprice
FROM SalesandReports
GROUP BY CustomerID, Cashier, OrderDate WITH ROLLUP
This is the output of my query: