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?

Answers were Sorted based on User's Feedback



Can we have more than one NULL in a column having unique constraint?..

Answer / atikullah

No, I think unique constraint contain no duplicate value in
a column. There are only contains unique value

Is This Answer Correct ?    0 Yes 1 No

Can we have more than one NULL in a column having unique constraint?..

Answer / rammohan176

yes Unique constraint accept more than one null.... because null is always not equal to another null value.i.e null<>null.
if any body have doubt please check this
CREATE TABLE TEST1 ( ENO NUMBER CONSTRAINT EU UNIQUE,
NAME1 VARCHAR2(10))

INSERT INTO TEST1 (NAME1) VALUES('RAM')

INSERT INTO TEST1 (NAME1) VALUES('KARTHIK')
INSERT INTO TEST1 (NAME1) VALUES('SANTHOSH')
INSERT INTO TEST1 (NAME1) VALUES('SANDY')

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More SQL Server Interview Questions

How can you ensure that the database and sql server based application perform well?

0 Answers  


Can we create clustered index on non primary key column

20 Answers   ABC, CTS,


Tell me what is log shipping?

0 Answers  


Can we return Data from 4(more than 1) tables in stored procedure?

0 Answers   HCL,


Explain a differential backup?

0 Answers  


How to create logins using windows Authentication mode?

2 Answers  


What do you mean by COLLATION?

4 Answers   ABC, BirlaSoft,


How display code or Text of Stored Procedure using Sql query in Sql Server ?

0 Answers   Wipro,


Explain how to maintain a fill factor in existing indexes?

0 Answers  


What is a filestream?

0 Answers  


What is meant by datasource?

0 Answers  


Distinguish between commit and rollback?

0 Answers  


Categories