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 three pl sql block types?

567


What is the difference between Union and Union all. Which is faster.

844


What is graph sql?

524


How do you write an index?

524


How do I save a stored procedure?

520






What is difference between hql and sql?

503


Why we use pl sql?

527


What is information schema in sql?

574


List the different type of joins?

567


explain advantages of innodb over myisam. : Sql dba

641


How can you create an empty table from an existing table?

594


What does := mean in pl sql?

551


How delete all records from table in sql?

548


How does sql profiler work?

566


What are inbuilt functions in sql?

595