What is a NULL value? What are the pros and cons of using
NULLS?

Answers were Sorted based on User's Feedback



What is a NULL value? What are the pros and cons of using NULLS?..

Answer / s

NULL Value indicates the absence of a value. DB2 treats
NULL as an actual value and is not equal to blank, zero or
empty string.

The default value of a CHAR data type is blanks, VARCHAR is
empty string and INT,SMALLINT,FLOAT etc is 0.
NULL is not equal to any of the above.

NULLs does not satify any condition in the SQL except when
IS NULL predicate is used. Null can be used at times when
you cannot specify a value for a column, eg middle names,
not everyone has middle names.

Is This Answer Correct ?    9 Yes 0 No

What is a NULL value? What are the pros and cons of using NULLS?..

Answer / sunil1405

A null value indicates that there is blank value in the
column field. It takes one byte of storage. Null value
requires special prog. to be handled in the app. prog

Is This Answer Correct ?    2 Yes 6 No

Post New Answer

More DB2 Interview Questions

What is a page?

2 Answers  


Is it possible to alter a table – for example adding a column, when another user is accessing or updating some columns?

0 Answers  


What is the use of value function?

0 Answers  


What is error -818 in db2. where can you find the timestamp of the DBRM and the source code.( precompile puts the timestamp on dbrm and source code correct?)

2 Answers  


Normalization in DB2 – first normal form, second normal form

4 Answers   Virtusa,


What will the COMMIT accomplish?

5 Answers  


What is subquery ?

6 Answers  


What is the difference between base table and view?

7 Answers  


What are the rules for db2 programming?

0 Answers  


What is DCLGEN ?

3 Answers  


how to take the back up of the DB2 table.

7 Answers  


When is the skeleton cursor table created?

1 Answers  


Categories