Pivot

  • hi all,

    i have many hours with this problem, but i hope that you can help me to solve.

    this is the table

    cverut   Ene       Feb 

    301     677.0      0.0

    301     0.0         577.0

    301     0.0         0.0

    302     454.0      0.0

    302     0.0         484.0

    302     0.0         0.0

    303     676.0      0.0

    303     0.0         976.0

    303     0.0         0.0

    i need  this result:

    cverut    Ene    Feb

    301     677.0     577.0

    302     454.0     484.0

    303     676.0      976.0

    thanks

  • SELECT CVERUT, SUM(ENE) AS ENE, SUM(FEB) AS FEB  FROM TABLE GROUP BY CVERUT

  • thanks Nilssond

    your solution is perfect and easy

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply