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
Explain the truncate command?
What is row_number function?
What is the osql utility?
IF more than one Site is accessing the same Database server and I want to move the DB with Minimum down time? How will you do
Explain encryption of entire databases without the need for application changes in sql server 2008?
What are a scheduled jobs?
what are isolation levels? : Sql server database administration
How do you size a resultset?
Explain error handling in ssis?
What is the architecture of ms sql reporting service?
What are views used for?
If a user does not have permission to a table, but has permission to a view created on it, will he be able to view the data in table?
Is a null value equal to anything? Can a space in a column be considered a null value? Why or why not?
What is nested transaction?
What is normalization according to you and explain its different levels?