How do u set a default value to a column if the column value
is NULL?

Answers were Sorted based on User's Feedback



How do u set a default value to a column if the column value is NULL?..

Answer / danny archer

If IsNull(link_name.column_name) then 'default_value' else
link_name.column_name

Is This Answer Correct ?    19 Yes 4 No

How do u set a default value to a column if the column value is NULL?..

Answer / maruthi

TAKE PARALLEL TRANSFORM-DOUBLE CLICK COLUMN FIELD/U WILL
GET DS MACRO,DS FUNCTION/GO TO FUCTIONS/NULL HANDLING/NULL
TO VALUE/HETE U CAN GIVE INPUT FIELD& DEFAULT VALUE.

Is This Answer Correct ?    8 Yes 1 No

How do u set a default value to a column if the column value is NULL?..

Answer / subhash

we can use
NullToValue(Col_Name, Default_Value)
or
NullToempty(Col_Name)functions in tranformaer stage.

Or
If the source is sequential file then, we have an option in
seq file ==> Formats ===> Filed Defaults ==>"Null Field
Value" --> we can set default value for it.

Is This Answer Correct ?    4 Yes 0 No

How do u set a default value to a column if the column value is NULL?..

Answer / hk

let make it more simpler use NullToValue() or NullToempty()
function ,

Is This Answer Correct ?    3 Yes 0 No

How do u set a default value to a column if the column value is NULL?..

Answer / suresh

in the column extended properties set the desired value if
it is null

Is This Answer Correct ?    2 Yes 0 No

How do u set a default value to a column if the column value is NULL?..

Answer / jayakumar

IF ISNULL(Column_Name.field) THEN default value ELSE
(Column_Name.field)

Is This Answer Correct ?    4 Yes 4 No

How do u set a default value to a column if the column value is NULL?..

Answer / sharman

Yes maruthii you r right...

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More Data Stage Interview Questions

Why fact table is in normal form?

0 Answers  


What are constraints and derivations?

0 Answers  


hi i am bhavani, in real time data stage who is the source provide? and how to recevied in developer? Pls send me answer

1 Answers   Polaris,


What all are the different way to run a job?

0 Answers  


what r the sources u need to create the datastage?

1 Answers  


I have a source table with column name CITY having 100 records, I want target table with column name start with 'A' and 'B',remaining columns as reject outputs. how can achieve this by data stage?please help me?????

5 Answers  


how to run jon in unix back round process what is command use in runing a job?

2 Answers   HSBC,


Describe stream connector?

0 Answers  


how many types of remove the duplicate records?

3 Answers   Caterpillar,


What are the partitioning techniques available in link partitioner?

0 Answers  


Which is the best institute in Hyderabad to learn OBIEE and DataStage?Please tell me faculty name also

0 Answers  


Name the different types of Lookups in Datastage?

0 Answers  


Categories