combine second column to rows above

  • Hi I have the following table:

    col1   |   col2

    abc        null

    def         null

    null         123

    null         456

    I want to have: {result set}

    col1   |   col2

    abc        123

    def         456

    Without cursors and in a single SQL statement.

    Thanks

  • What must stop from returning such set:

    col1   |   col2

    abc        456

    def         123

    _____________
    Code for TallyGenerator

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

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