Group by returns wrong products

Code reviewHard24 minSnowflake style

Your task

Review this SQL meant to show each product's latest price and total units sold.

This runs on MySQL with ONLY_FULL_GROUP_BY disabled.