2
I need to calculate the discount average per product in my table in Mysql, but my code is only running on average, how can I get it to give me the product and the discount average on top of this product ?
source code:
SELECT avg(desconto) as media from object
Alias, the question of exercise is this: What is the average value of discounts given per product. The columns present in the query result are: ID_PROD, MEDIA
– Lucas Tadeu