Can we have more than one NULL in a column having unique
constraint?
Answers were Sorted based on User's Feedback
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 |
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 |
How can you ensure that the database and sql server based application perform well?
Can we create clustered index on non primary key column
20 Answers ABC, CTS,
Tell me what is log shipping?
Can we return Data from 4(more than 1) tables in stored procedure?
Explain a differential backup?
How to create logins using windows Authentication mode?
What do you mean by COLLATION?
How display code or Text of Stored Procedure using Sql query in Sql Server ?
Explain how to maintain a fill factor in existing indexes?
What is a filestream?
What is meant by datasource?
Distinguish between commit and rollback?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)