What do you mean by NOT NULL? When will you use it?

Answers were Sorted based on User's Feedback



What do you mean by NOT NULL? When will you use it?..

Answer / s

NOT NULL disallows nulls for the column. Primary Key must
be defined as NOT NULL or any key that you do not want to
have NULLS, becaue the default is that any column can
contain NULLs

Is This Answer Correct ?    1 Yes 0 No

What do you mean by NOT NULL? When will you use it?..

Answer / andank

NOT NULL is the keyword used define columns, when create a
table. When you specify NOT NULL to a column, that column
can not hold NULL values.

Is This Answer Correct ?    1 Yes 0 No

What do you mean by NOT NULL? When will you use it?..

Answer / s

CREATE UNIQUE WHERE NOT NULL INDEX index1
ON table(column);

WHERE NOT NULL ensures that non-null values are unique.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More DB2 Interview Questions

What is package versioning? Please give an example.

1 Answers  


What is correlation names?

1 Answers  


How many sub queries can you combine together ?

4 Answers   IBM,


How would one remove old reorg information from the DB2 catalog?

2 Answers  


what's the error code for Unique Index Violation?

2 Answers  






What is the purpose of the WHENEVER statement?

1 Answers  


I have a main program (A) where we delete some rows in table in a cursor, and we commit it in sub program(B). What will happen - will we get an error or not?

2 Answers  


DB2 can implement a join in three ways using a merge join, a nested join or a hybrid join. Explain the differences?

0 Answers  


how can u nderstand the sql stmts executed successfully or not ?

1 Answers   TCS,


What value the host varible will contain , if null indicator value is -2 ? Will it contain the truncated value or nothing will move ?

3 Answers   Cap Gemini,


Is schema the same as database?

0 Answers  


What is buffer pool?

0 Answers  


Categories