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.

Answers were Sorted based on User's Feedback



WHAT IS THE DIFFERENCE BETWEEN PRIMARY KEY(PK) CONSTRAINT AND UNIQUE KEY(UK) + NOT NULL(NN) CONSTRA..

Answer / 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

WHAT IS THE DIFFERENCE BETWEEN PRIMARY KEY(PK) CONSTRAINT AND UNIQUE KEY(UK) + NOT NULL(NN) CONSTRA..

Answer / manikanta

By default primary key maintain clusterd index,All the
records are stored in stored order.By takeing this
advantage query will be execute fast.

Unique maintain nonclusted index,All the records are not in
stored order.

Is This Answer Correct ?    3 Yes 0 No

WHAT IS THE DIFFERENCE BETWEEN PRIMARY KEY(PK) CONSTRAINT AND UNIQUE KEY(UK) + NOT NULL(NN) CONSTRA..

Answer / shwetalguglanicse

Primary key can be assigned to only 1 column in the table but
this is not with unique key
And UK allow duplicate value but PK does not .

Is This Answer Correct ?    2 Yes 8 No

Post New Answer

More Oracle General Interview Questions

How to create a table in a specific tablespace?

0 Answers  


sql query to get zero records from a table

7 Answers   CTS,


What is the difference between hot backup and cold backup in oracle? Tell about their benefits also.

0 Answers  


does the query needs a hint to access a materialized view?

0 Answers  


What are the different types of database objects?

0 Answers  






What is the difference between implicit index and explicit index?

2 Answers   TCS,


structural difference between bitmap and btree index ?

1 Answers   Infosys,


Explain the use of analyse option in exp command.

0 Answers  


List out the difference between commit, rollback, and savepoint?

0 Answers  


WHAT IS THE DEFINITION OF DEFAULT CUSTOMER IN AR?

0 Answers   Intelligroup,


When do you get a .pll extension in oracle?

0 Answers  


HI, Please let me know the syllabus for Oracle OCA and OCP Certification

0 Answers  


Categories
  • Oracle General Interview Questions Oracle General (1789)
  • Oracle DBA (Database Administration) Interview Questions Oracle DBA (Database Administration) (261)
  • Oracle Call Interface (OCI) Interview Questions Oracle Call Interface (OCI) (10)
  • Oracle Architecture Interview Questions Oracle Architecture (90)
  • Oracle Security Interview Questions Oracle Security (38)
  • Oracle Forms Reports Interview Questions Oracle Forms Reports (510)
  • Oracle Data Integrator (ODI) Interview Questions Oracle Data Integrator (ODI) (120)
  • Oracle ETL Interview Questions Oracle ETL (15)
  • Oracle RAC Interview Questions Oracle RAC (93)
  • Oracle D2K Interview Questions Oracle D2K (72)
  • Oracle AllOther Interview Questions Oracle AllOther (241)