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

When is the authorization check on DB2 objects done - at BIND time or run time?

1 Answers  


What is the purpose of the WHENEVER statement?

1 Answers  


What do you mean by between and in? Is between inclusive of specified range values?

0 Answers  


How to fetch the last row from the table in SQL (db2)?

0 Answers  


What is JOIN and different types of JOIN.

2 Answers   IBM,






What is the role of data manager in the db2 database?

0 Answers  


What is a cursor in programming?

0 Answers  


How do you eliminate duplicate values in db2?

0 Answers  


What is the difference between oracle and db2?

0 Answers  


Which component is responsible for db2 startup and shutdown?

0 Answers  


how can we find nth max salary from A table

5 Answers   IBM,


What is correlation names?

1 Answers  


Categories