Can a unique index have more than one null value? If not,
what error code is given if an attempt is made to insert
more than one null value?

Answers were Sorted based on User's Feedback



Can a unique index have more than one null value? If not, what error code is given if an attempt i..

Answer / mani

Unique index can have null values and no null value is equal
to another null value.

i don't know if it raises an error or not when you insert a
null value.
Null value acceptance in the column is again based on the
definition given for the column whether it can accept null
values or not.

Is This Answer Correct ?    5 Yes 2 No

Can a unique index have more than one null value? If not, what error code is given if an attempt i..

Answer / sri

Null value will allow only one null (That is maximum) as
per DB2 stds. If we try to insert more we get error -305.

Is This Answer Correct ?    2 Yes 5 No

Can a unique index have more than one null value? If not, what error code is given if an attempt i..

Answer / ratheesh

No. A SQLCODE of -803 (duplicate insert) will be returned.

Is This Answer Correct ?    0 Yes 6 No

Post New Answer

More DB2 Interview Questions

What is a SELECT statement?

1 Answers  


Explain packages.

0 Answers  


What are union and union all?

0 Answers  


What is db2 stogroup?

0 Answers  


What is the difference between dbm cfg and db cfg file in db2 ?

0 Answers   MCN Solutions,






How many types of page locks can be held in db2?

0 Answers  


how do you resolve -818 error in db2. where we have to see time stamp token. i said by seeing in load module and plan .is it correct or not. give clear explination for how to see time stamp token

2 Answers   IBM, TRD,


WHAT IS MEANT BY COMMIT COMMAND?

7 Answers   Wipro,


What is netezza database?

0 Answers  


What is declare cursor?

0 Answers  


How is a typical db2 batch pgm executed?

0 Answers  


What is a synonym ?

2 Answers  


Categories