I know there are enough posts here about the percentage growth but nothing helped me.
I have a table with this columns:
Retailer country, retailer_type,
product_type, product, year, revenue,
quantity, gross_margin
I have to find out to every single product how it developed over the years and how much it grows per percentage.
Can anyone help me? i can do that for every single product and year but its too much and I'm trying to write a query to do it all in one
SELECT product, year, SUM(revenue) AS sum_2012
FROM hallo
WHERE retailer_country LIKE 'United%States'
AND year = 2012