/ (Divide) (SQL Server Compact)
Divides one number by another.
The following example uses the divide arithmetic operator to determine the average total cost for each order of a specific product (with a Product ID of 51) in the Order Details table. Product 51 has 39 orders.
SELECT (SUM(UnitPrice * Quantity))/39 AS "Avg. Cost per Order" FROM "Order Details" WHERE ProductID = '51'
This is the result set:
Avg. Cost per Order ------------------- 1147.2461
