ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories  >>  Software  >>  Databases  >>  SQL Server
 
 


 

 
 Oracle interview questions  Oracle Interview Questions
 SQL Server interview questions  SQL Server Interview Questions
 MS Access interview questions  MS Access Interview Questions
 MySQL interview questions  MySQL Interview Questions
 Postgre interview questions  Postgre Interview Questions
 Sybase interview questions  Sybase Interview Questions
 DB Architecture interview questions  DB Architecture Interview Questions
 DB Administration interview questions  DB Administration Interview Questions
 DB Development interview questions  DB Development Interview Questions
 SQL PLSQL interview questions  SQL PLSQL Interview Questions
 Databases AllOther interview questions  Databases AllOther Interview Questions
Question
Can we have more than one NULL in a column having unique 
constraint?
 Question Submitted By :: Srikanth
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Can we have more than one NULL in a column having unique constraint?
Answer
# 1
no
 
Is This Answer Correct ?    11 Yes 4 No
Saurabh
 
  Re: Can we have more than one NULL in a column having unique constraint?
Answer
# 2
No, because Unique constraint accepts only one null value.
 
Is This Answer Correct ?    13 Yes 3 No
Kalu
 
 
 
  Re: Can we have more than one NULL in a column having unique constraint?
Answer
# 3
Yes there can be any number of NULLs. 
Remember NULL <> NULL.

So uniqueness will still be there.

Just try it out.

Maneesh
 
Is This Answer Correct ?    4 Yes 4 No
Maneesh
 
  Re: Can we have more than one NULL in a column having unique constraint?
Answer
# 4
No we can not have that option in sql server
 
Is This Answer Correct ?    3 Yes 2 No
Santhoshkumar.k
 
  Re: Can we have more than one NULL in a column having unique constraint?
Answer
# 5
No we cant have More than One Null in a column which is
having Unique Key Constraint. Because  Unique Key Constraint
means having a value only once in the column.
 
Is This Answer Correct ?    3 Yes 1 No
P.prabhu
 
  Re: Can we have more than one NULL in a column having unique constraint?
Answer
# 6
No, I think unique constraint contain no duplicate value in 
a column. There are only contains unique value
 
Is This Answer Correct ?    0 Yes 0 No
Atikullah
 
  Re: Can we have more than one NULL in a column having unique constraint?
Answer
# 7
It depends upon the database on which you are working.....in SQL we can have only one value but in oracle we can have n no of values.......i did it practically.
 
Is This Answer Correct ?    0 Yes 0 No
Habibur Rahaman
 

 
 
 
Other SQL Server Interview Questions
 
  Question Asked @ Answers
 
What are the types of backup and tell me the difference between full and differential backup? TCS3
what is the order of execution of where,having,group by in select stement Tanla-Solutions5
What's the difference between a primary key and a unique key?  4
Hi Friends, I have a table in which there are thousands of records and in city field there is NULL value for all records now i want to change that null value with distinct values in each record say delhi, bihar, agra, jaipur etc, what will be the query for that????? its not possible to update thousands of records one by one. is there any alternative ...? Plz help ... its urgent Thanx in advance  1
1.can we set the more than 1 primary keys for a table? 2.please give me the difference between Cluster Index and non-Clustered Index 3.can we use query like this "Select * from Table1,Table2;"  6
What are the types of model in sql server and explain TCS1
Can we use Truncate command on a table which is referenced by FOREIGN KEY?  2
What is Deadlock? Satyam3
Explain different isolation levels?  3
What is normalization in Database ?  4
Which databases are part of SQL server default installation? Explain the usage of each? Accenture2
How do you check the performance of a query and how do you optimize it?  1
Advantages and Disadvantages of Cursor? Zenith10
what is meant by sql injection with example and one more question how to catch the errors in sqlserver  1
what is IDE,DMV in sql server? Value-Labs1
select top 5 * from emp order by newid() my question is , how this query get executed?  4
What is the difference between IN and EXISTS operators in SQL Server? Intelligroup3
What is SQL Profiler what is the use of it? 247Customer2
Please give me queries for the following 1. To get the count of duplicate records. 2. A query to delete the duplicate records. 247Customer3
What is the difference between a HAVING CLAUSE and a WHERE CLAUSE? Yardi-Software4
 
For more SQL Server Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com