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
What are the advantages of policy management?
What is coalesce in sql server?
Which table keeps the locking information?
How to see the event list of an existing trigger using sys.trigger_events?
How many types of built in functions are there in sql server 2012?
What are the encryption mechanisms in sql server?
What is the purpose of sql profiler in sql server?
How to provide values to stored procedure parameters in ms sql server?
What is SQL Server?
What is the difference between mysql and sql server?
Explain about builtinadministrator?
What is difference between foreign key and unique key?
What are sp_configure commands and set commands?
How to create a user to access a database in ms sql server using "create user" statements?
what's the difference between delete table and truncate table commands? : Sql server database administration