Options:-
a) 1
b) 2
c) More than 1
Answer :- Option a) 1
In SQL Server, we can Insert only one null value in a column where we have defined the Unique Constraint.
For Example , suppose we made a table test_unique, whose script is given below:-
create table test_unique (id int unique)
Now we insert the following values in it.
insert into test_unique(id) values (1)
insert into test_unique(id) values (2)
insert into test_unique(id) values (NULL)
insert into test_unique(id) values (3)
Here we inserted one null value before inserting 3.
If we see the records in the table , it shows the following data.
Let try to insert another NULL value and see what error it gives.
insert into test_unique(id) values (NULL)
Then it will gives the following error
So, In SQL server we can insert only one NULL value in a column where Unique constraint is defined.
Discover more from Technology with Vivek Johari
Subscribe to get the latest posts sent to your email.
… [Trackback]
[…] Find More on on that Topic: techmixing.com/2014/04/answer-objective-question-how-many-nu.html […]
… [Trackback]
[…] Find More to that Topic: techmixing.com/2014/04/answer-objective-question-how-many-nu.html […]
… [Trackback]
[…] Information on that Topic: techmixing.com/2014/04/answer-objective-question-how-many-nu.html […]
… [Trackback]
[…] Read More here to that Topic: techmixing.com/2014/04/answer-objective-question-how-many-nu.html […]
… [Trackback]
[…] Read More to that Topic: techmixing.com/2014/04/answer-objective-question-how-many-nu.html […]
… [Trackback]
[…] Find More Info here to that Topic: techmixing.com/2014/04/answer-objective-question-how-many-nu.html […]
… [Trackback]
[…] Find More to that Topic: techmixing.com/2014/04/answer-objective-question-how-many-nu.html […]
… [Trackback]
[…] Read More on that Topic: techmixing.com/2014/04/answer-objective-question-how-many-nu.html […]
… [Trackback]
[…] Find More Information here on that Topic: techmixing.com/2014/04/answer-objective-question-how-many-nu.html […]
… [Trackback]
[…] Read More Information here to that Topic: techmixing.com/2014/04/answer-objective-question-how-many-nu.html […]
… [Trackback]
[…] There you can find 62478 additional Information on that Topic: techmixing.com/2014/04/answer-objective-question-how-many-nu.html […]
… [Trackback]
[…] Info to that Topic: techmixing.com/2014/04/answer-objective-question-how-many-nu.html […]
… [Trackback]
[…] Read More here to that Topic: techmixing.com/2014/04/answer-objective-question-how-many-nu.html […]
… [Trackback]
[…] Read More on on that Topic: techmixing.com/2014/04/answer-objective-question-how-many-nu.html […]
… [Trackback]
[…] Read More on on that Topic: techmixing.com/2014/04/answer-objective-question-how-many-nu.html […]
… [Trackback]
[…] Read More on that Topic: techmixing.com/2014/04/answer-objective-question-how-many-nu.html […]
… [Trackback]
[…] Read More to that Topic: techmixing.com/2014/04/answer-objective-question-how-many-nu.html […]
… [Trackback]
[…] Find More on that Topic: techmixing.com/2014/04/answer-objective-question-how-many-nu.html […]
… [Trackback]
[…] There you can find 10613 additional Information to that Topic: techmixing.com/2014/04/answer-objective-question-how-many-nu.html […]
… [Trackback]
[…] Info on that Topic: techmixing.com/2014/04/answer-objective-question-how-many-nu.html […]
… [Trackback]
[…] Info on that Topic: techmixing.com/2014/04/answer-objective-question-how-many-nu.html […]
… [Trackback]
[…] Find More here on that Topic: techmixing.com/2014/04/answer-objective-question-how-many-nu.html […]
… [Trackback]
[…] Read More to that Topic: techmixing.com/2014/04/answer-objective-question-how-many-nu.html […]
… [Trackback]
[…] Find More to that Topic: techmixing.com/2014/04/answer-objective-question-how-many-nu.html […]
… [Trackback]
[…] Information on that Topic: techmixing.com/2014/04/answer-objective-question-how-many-nu.html […]
… [Trackback]
[…] Read More here on that Topic: techmixing.com/2014/04/answer-objective-question-how-many-nu.html […]
… [Trackback]
[…] There you can find 83383 additional Information to that Topic: techmixing.com/2014/04/answer-objective-question-how-many-nu.html […]
… [Trackback]
[…] Here you can find 34538 additional Information on that Topic: techmixing.com/2014/04/answer-objective-question-how-many-nu.html […]
… [Trackback]
[…] There you can find 39997 more Information on that Topic: techmixing.com/2014/04/answer-objective-question-how-many-nu.html […]
… [Trackback]
[…] Read More on that Topic: techmixing.com/2014/04/answer-objective-question-how-many-nu.html […]
… [Trackback]
[…] Read More here to that Topic: techmixing.com/2014/04/answer-objective-question-how-many-nu.html […]