Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Define commit, rollback and savepoint?

990


Is primary key a clustered index?

946


How many joins can you have in sql?

898


what are ddl statements in mysql? : Sql dba

1136


When do we use triggers?

1042


What is sql and also describe types of sql statements?

1020


Can variables be used in sql statements?

995


Enlist some predefined exceptions?

1023


What is the current version of sql?

994


What is the difference between count 1 and count (*) in a sql query?

932


What is Materialized View? In What Scenario we Use Materialized View?

9439


What is trigger and how to use it in sql?

979


How do I run a script in sql developer?

913


Can triggers stop a dml statement from executing on a table?

1043


What is not null in sql?

1006