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 dbcc?

1082


Explain important index characteristics?

982


What are the recovery models in sql server 2000?

926


Can we insert data if clustered index is disabled?

890


what are defaults? : Sql server database administration

1005


Do you know what is rank function?

1029


What are the disadvantages of indexes?

997


What are transactions and its controls?

1003


What is the data tier application?

169


How to use linked server?

1086


How to download microsoft sql server 2005 express edition?

975


What is Command line parameters in PLSQL.?

1058


Does sql server use java?

995


What is user defined datatypes and when you should go for them?

963


What are indexes in sql?

1173