If a table column has is UNIQUE and has NOT NULL, is it
equivalent to a PRIMARY KEY column?

Answer Posted / dibya tara shakya

It will same but in case of primary key we can create the
master child relationship with other child table as foreign
key but in case of unique and not null we cannot.

another major difference is that Primary key constraint
applied Cluster index on that
column and unique key constraint non clustered index on
that column.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is hash cluster in oracle?

604


How to Truncate Table in Oracle

663


Explain an exception and its types?

618


Difference between inner join vs where ?

619


Point the difference between translate and replace?

582






Is it possible to set second Primary Key Constraint in a table in Oracle Database ?

655


What is a user role in oracle?

627


How to add another datafile to a tablespace?

587


Explain the use of indexes option in imp command.

578


How to initialize variables with default values?

648


What is the difference between hot backup and cold backup in oracle?

530


How does oracle handle read consistency?

687


How can we create the complete backup of data in the oracle.

1696


In oracle there is column command, how will you explain that?

558


src name sex a,male b,female c,male d,female Required output : male female a,b c,d tried pivot but was not successfull select * from src pivot (max(name) for sex in ('MALE','FEMALE'));

1188