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

How much ram can sql express use?

699


What are the constraints available in sql?

780


What is a data definition language?

791


How do I create a sql script?

759


what are the limitations of identity column? : Transact sql

822






Show code of a cursor for loop.

769


What is sqlerrm?

713


What is the difference between rollback and rollback to statements?

803


Can we use rowid as primary key?

735


Is null operator in sql?

792


give the syntax of grant and revoke commands? : Sql dba

800


What are properties of the transaction?

724


How to pronounce postgresql?

760


what are dynamic queries in t-sql? : Transact sql

740


What is the difference between explicit and implicit cursors in oracle?

693