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

Explain system views?

1078


Name some of the open source software that you can use in alternative to SSR?

159


What are different types of raid configurations? : SQL Server Architecture

1066


What is unpivot?

1007


What are the differences between having and where clause.

962


What is the fastest way to permanently delete a 1 million row table named customers?

1247


Which tcp/ip port does sql server run on? How can it be changed?

1030


How to modify the underlying query of an existing view?

986


Explain what is dbcc?

1000


Mention what are the core components of ssrs?

323


How to delete existing triggers using "drop trigger"?

1047


What is a join in sql? What are the types of joins?

1093


Explain how to maintain a fill factor in existing indexes?

990


Can a database be shrunk to 0 bytes, if not, why?

1093


Beginning with sql server version 7 0, a new enhanced data type nchar was added what type of data is supported with this data type?

1002