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
  • 39,551
  • 56
  • 175
  • 291
Yves
  • 11,597
  • 17
  • 83
  • 180

0 Answers0