Handling with null values

  • Hi,

    I have a column caled pgm_id(datatype is int) in source table and same data type in destination table.

    But problem is the column pgm_id in source table allow nulls whereas the destination table doesnt allow null.

    So how to handle it.

    Thnks in advance






    Regards,
    Sudheer 

    My Blog

  • Two ideas.

    1. Change the destination table to accept nulls.

    2. Use isnull to replace the nulls with another value:

    select isnull(column_name,replacement_value)

    from tablename

    Jeremy

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

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