When we can declare a column as Unique and Not Null both at
the same time. What is the use pf Primary Key then?

Answer Posted / swapna

The concept of adding an unique key and not null constraint
to a column as well as adding as unique index to it , you
will assume to get the benefits of adding an primary key
to that column.

But use it for the purpose of referential integrity will
not allow to do so.

That's what PK is so useful. You will use it for
normalization purpose.

Is This Answer Correct ?    12 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the triggers associated with image items?

629


What is union?

660


What is the use of sqldataadapter?

545


what are the maximum number of rows that can be constructed by inserting rows directly in value list? : Transact sql

509


how to rename an existing column in a table? : Sql dba

519






Why truncate is faster than delete?

569


How long will it take to learn pl sql?

532


What is the command used to fetch the first 5 characters of a string?

717


Is not null in sql?

570


What is pl sql record in oracle?

571


What are functions in sql?

517


Are stored procedures faster than queries?

528


what is error ora-03113: end-of-file on communication channel?

612


What is trigger explain with example?

562


Does db2 use sql?

522