User160479614 posted
"SELECT od.OrderID, SUM(CONVERT(money, (od.UnitPrice * " &_
"
od.Quantity) * (1 - od.Discount) / 100) * 100) " &_
"
AS Total, o.EmployeeID, o.OrderDate, " &_
"
c.CompanyName" &vbcrlf&_
"FROM
[Order Details] od " &_
"
INNER JOIN Orders o " &_
"
ON od.OrderID = o.OrderID" &vbcrlf&_
"
INNER JOIN Customers c " &_
"
ON o.CustomerID = c.CustomerID" &vbcrlf&_
"GROUP
BY od.OrderID, o.EmployeeID, o.OrderDate, c.CompanyName"
please
help me in this sql statement and where is the error, thanks in advanced.