Please Try to give this format..

  • Dear all

    I have a output like this

    COLUMNS ARE : MARCH APRIL MAY

    ROWS ARE :

    10 0 20

    0 20 21

    11 0 0

    But i need this format..

    COLUMNS ARE : MARCH APRIL MAY

    ROWS ARE

    10 20 20

    11 0 21

    Any onew can help me?..

    please

  • What is the table structure and also give the query you are using to get the output.

    Tanx 😀

  • A table having the columns are

    January_id ,March_id , april_id

    If i

    select January_id ,March_id , april_id from table

    it shows the values

    10 , 0 , 20

    0 , 5 , 0

    here I need to avoid the extra rows

    10 , 5 ,20

    can we do?

  • Saravanan_tvr (6/23/2009)


    it shows the values

    10 , 0 , 20

    0 , 5 , 0

    here I need to avoid the extra rows

    10 , 5 ,20

    can we do?

    Hi,

    like this

    select sum(Jan_id),sum(feb_ig),sum(mar_id).....

    ARUN SAS

Viewing 4 posts - 1 through 4 (of 4 total)

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