I struggled to solve the issue I will describe bellow, but still without any success
So, I have the following database structure: http://sqlfiddle.com/#!6/afb83b/1
What I want to achieve is instead of displaying the same group 3 times (or in other cases multiple times), the query should render the following output instead of the output from SQLFiddle:
id_project | id_group | A | R | K | Year | Month | Value
1 1 A1 R1 K1 2017 05 0.77
1 2 A1 R1 K2 2017 05 0.3
1 3 A1 R1 K3 2017 05 0.22
1 4 A1 R1 K4 2017 05 0.45
...
1 100 A3 R3 K8 2017 05 0.34
I tried using PIVOT, but I have issues on displaying it like I want it..