how to update a variable with not null values

  • hi all,

    i want to update a variable with not null values whereas i have both null,empty,not null values in my table

    can anybody help me to solve this issue

    thanks in advance

    regards

    durgesh j

  • I think u will have to explain a little more with some code...

  • use IsNull, COALESCE functions, for more information, see SQL BOL.

  • hi ros,

    i have a transaction table

    col1 col2 col3

    a 1 a1

    b 2

    c 5 c1

    d 3 d1

    the output should be display in col2 order

    i mean order by col2

    In the following output there is no value for b(col1) bcoz its value in col3 is empty

    output:

    a:a1;d:d1;c:c1

  • Use isnull(col3,'') instead of a just col3.

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

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