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 have more than one NULL in a column having unique
constraint?

Answer Posted / manoj pandey

No this is not possible... columns with Unique constraint
can only contain 1 null value/row.

@Manish... could you please try this:

create table #tempTable (id int, name varchar(50) unique)

insert into #tempTable
select 1, 'manoj' union
select 2, null union
select 3, null union
select 4, 'pandey'

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is code near application topology?

283


Why would you call update statistics?

1073


Is mysql the same as sql server?

1032


What is the recommended total size of your memory optimized tables?

1005


what is checksum in sql server.........???

1747


How to perform backup for certificates in sql server? : sql server security

1145


what is sql server? : Sql server database administration

1044


Explain alternate key, candidate key and composite key in sql server?

953


Can two tables share a primary key?

1084


In which format does an image save in SQL Server database ?

1058


Is it possible to have clustered index on separate drive from original table location?

1018


What is the importance of three tier architecture?

1142


what are user defined datatypes? : Sql server database administration

1015


What is the meaning of sql server?

1037


What triggers long term care?

1088