CREATE VIEW [Invoices] AS 
SELECT ShipName, ShipAddress, ShipCity, ShipRegion, ShipPostalCode, ShipCountry, Orders.CustomerID as CustomerID, Customers.CompanyName, Customers.Address, Customers.City, Customers.Region, Customers.PostalCode, Customers.Country, 
Employees.[FirstName] || ' ' || Employees.[LastName] AS Salesperson, 
Orders.OrderID as OrderID, OrderDate, RequiredDate, ShippedDate, 
Shippers.CompanyName, Products.ProductID as ProductID, ProductName, [Order Details].UnitPrice as UnitPrice, Quantity, Round(Discount,4) as DisCount, Round([Order Details].UnitPrice * Quantity * (1-Discount), 2) AS ExtendedPrice, Freight FROM 
Orders INNER JOIN Customers ON Orders.CustomerID = Customers.CustomerID 
           INNER JOIN Employees ON Employees.EmployeeID = Orders.EmployeeID
           INNER JOIN [Order Details] ON Orders.OrderID = [Order Details].OrderID
           INNER JOIN Products ON Products.ProductID = [Order Details].ProductID
           INNER JOIN Shippers ON Shippers.ShipperID = Orders.ShipVia
Order By Orders.OrderID