Can we use more than one null value for unique key?

Answer Posted / hassan khan

A unique key constraint does not imply the NOT NULL
constraint in practice. Because NULL is not an actual value
(it represents the lack of a value), when two rows are
compared, and both rows have NULL in a column, the column
values are not considered to be equal. Thus, in order for a
unique key to uniquely identify each row in a table, NULL
values must not be used. According to the SQL standard and
Relational Model theory, a unique key (unique constraint)
should accept NULL in several rows/tuples — however not all
RDBMS implement this feature correctly.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

explain the difference between delete , truncate and drop commands? : Sql dba

550


Can we use ddl commands in pl sql?

562


What is fmtonly in sql?

534


When sql appeared?

623


define join and explain different type of joins? : Sql dba

547






Can you select everything, but 1 or 2 fields, without writer's cramp?

500


Show the cursor attributes of pl/sql.

615


What is varray in pl sql?

566


Does a primary key have to be a number?

522


What is pl sql commands?

558


how to use like conditions? : Sql dba

578


Define the select into statement.

576


How do I run a pl sql procedure in sql developer?

516


Can there be 2 primary keys in a table?

559


What is sql profiling in oracle?

551