WHAT IS THE DIFFERENCE BETWEEN PRIMARY KEY(PK) CONSTRAINT
AND UNIQUE KEY(UK) + NOT NULL(NN) CONSTRAINT ASSIGN TO A
COLUMN ?
INSTEAD OF ASSIGNING PK ,WE CAN ASSIGN UK + NN TO A COLUMN.
WHAT ARE THE MARRITS AND DEMARITS BETWEEN THE ABOVE TWO?THE
ABOVE TWO ARE SAME,THEY DON'T ALLOW DUPLICATE AS WELL AS
NULL VALUES.

Answer Posted / adil khan

1.you can assign UK + NN TO A COLUMN behave like PRIMARY KEY(PK)
but (UK + NN) can not make any relation with any other table.
where as PRIMARY KEY(PK) can make relation with others tables.

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

hey friends, What are the steps I can do to transfer the database from Microsoft Access 2003 to oracle10g (or SQL) Best regards

1560


Can we connect to ORACLE db using Windows Authentication?

716


Name the various constraints used in oracle?

562


Explain what are the advantages of views?

605


What language does oracle use?

591






why should i declare foreign key constraint as self relation instead of binary relation in tables ?

1564


What is a relational database management system?

670


Explain the use of Merge statement in oracle 11g

591


What are the original export and import utilities?

569


What is data type in oracle?

558


I have a parent program and a child program. I want to write a statement in Exception Block of the parent program so that when the statement in the exception block is executed, the control goes to the next statement in the parent block bypassing the child block.How do i do that?

1967


Hi friends can u send the oracle 9i full version download link?????????????? please reply ?

1440


What is the simplest tool to run commands on oracle servers?

511


how can we store any pdf file in oracle

1636


If any one has information regarding interview of NIC (National Informatics Centre),it would be of great help...

1726