IN A TABLE HAVE ONE COLUMN PRIMARY KEY..IT WILL NOT ALLOWS
NULL VALUES AND DUPLICATE VALUES..INSTEAD OF PRIMARY KEY
WHY CANT WE USE UNIQUE AND NOT NULL.THESE TWO ALSO DOESNT
ACCEPT NULL VALUES IN NOT NULL AND UNIQUE DOESNT ACCEPT
DUPLICATE VALUES?
SO WHAT IS THE DIFEERENCE BETWEEN(UNIQUE,NOT NULL) AND
PRIMARY KEY??????
Answer Posted / shahid
the above answer is wrong ...we can use foreign key for
unique key also...
| Is This Answer Correct ? | 8 Yes | 2 No |
Post New Answer View All Answers
What is rank function in sql?
How to download oracle sql developer?
What is the source code of a program?
What is a database? Explain
explain normalization concept? : Sql dba
What are the various levels of constraints?
why does the selected column have to be in the group by clause or part of an aggregate function? : Sql dba
what is online transaction processing (oltp)? : Sql dba
how to use in conditions? : Sql dba
Why is nosql good?
Enlist some predefined exceptions?
What is a trigger in sql?
Define overloaded procedure?
What will you get by the cursor attribute sql%notfound?
Explain the steps needed to create the scheduled job?