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 is pivot in sql?

507


What is trigger types in sql?

526


Can a table contain multiple foreign key’s?

558


What is oracle pl sql developer?

525


What is rename command in sql?

460






What is a sql profiler?

582


What is the purpose of using pl/sql?

653


What is database migration?

508


what is 'mysqlshow'? : Sql dba

570


Which are sql * plus commands?

531


What is string join?

546


What is the use of %rowtype?

525


Why we use pl sql?

524


What happens when a trigger is associated to a view?

494


Can we use join in subquery?

563