0

Saying that I have a table as below:

year    month    price
1991      1       1.1
1991      2       1.2
1991      3       1.3
1992      1       2.1
1992      2       2.2
1992      3       2.3

Now I want to generate such a table according to the table above:

year    m1    m2    m3
1991    1.1   1.2   1.3
1992    2.1   2.2   2.3

How to do this with SQL?

Uwe Keim
  • 38,279
  • 56
  • 171
  • 280
Yves
  • 10,315
  • 11
  • 69
  • 141

0 Answers0