Find the bugs: units ordered and average unit price

For each product, return the total number of units ordered (quantity) and the average price per unit. Include all order line items in the calculation. Find the lines of the query that contain errors.

Find the errorsGROUP BY / HAVINGMiddleAnalystData Engineer
Input data · iv_order_items
idorder_idproductquantityprice
11pen102.00
21notebook110.00
32pen14.00
43notebook510.00
53bag150.00
64pen23.00
75pen310.00
87bag260.00
98notebook240.00
SELECT product,
       COUNT(*) AS units,
       AVG(price) AS avg_unit_price
FROM iv_order_items
GROUP BY product
ORDER BY product