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 the difference between alter trigger and drop trigger statements?

693


Is it possible to link two groups inside a cross products after the cross products group has been created?

685


what are the authentication modes in sql server? How can it be changed? : Sql dba

817


What are synonyms in sql?

629


How do you modify a table in sql?

680






What is the difference between sql and t sql?

622


What can sql server reporting services do?

694


Which table is left in left join?

625


Name three sql operations that perform a sort.

680


Show the cursor attributes of pl/sql.

701


When do we use triggers?

683


Describe different types of general function used in sql?

620


How do temporal tables work?

607


What is pivot table in sql?

623


Is sql the best database?

593