I have a table
CREATE TABLE #measures (
month_code INT,
measure_name VARCHAR(20),
measure_value Decimal(18,4)
);
INSERT INTO #measure_history (month_code, measure_name, measure_value) VALUES
(202305,'quantity', 100),
(202305,'sale', 12312440.00 ),
(202305,'margin', 2462488.00),
(202305,'client', 10),
(202306,'quantity', 110),
(202306,'sale', 13814557.68),
(202306,'margin', 2762911.536),
(202306,'client', 15),
(202307,'quantity', 135),
(202307,'sale', 17293314.4776),
(202307,'margin', 3458662.8955),
(202307,'client', 20),
(202308,'quantity', 150),
(202308,'sale', 19599089.74),
(202308,'margin', 3919817.95),
(202308,'client',25);
and need to make this one
How to do this using group by?
And not using group by?
And add a column with monthly growth.
Thank you so much for you help