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

Answers were Sorted based on User's Feedback



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

Answer / murugananthan

NO, UNIQUE +NOT NULL != PRIMARY KEY
it cant refer someother table column

Is This Answer Correct ?    12 Yes 2 No

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

Answer / yuva

No. It can be at table level, but this will get failed
while referencing in another table.

Is This Answer Correct ?    13 Yes 5 No

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

Answer / reddibasha

No, it is not equivalent practically.

Is This Answer Correct ?    3 Yes 0 No

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

Answer / kuldeep singh

Primary Key=Unique+Not Null+Sorting+Cluster Index
So
UNIQUE +NOT NULL != PRIMARY KEY
it cant refer someother table column

Is This Answer Correct ?    2 Yes 0 No

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

Answer / raam

No. Generally Primary Key contains Unique + NotNull values.
If we are not defined a column as Primay Key and we defined
as Unique + NotNull, then, the behavior of that particular
column in that particular table looks like primary key. but
this cannot be referenced in any other table as we have not
defined as primary key..So, Primary Key column is different
from the column which have Unique + Not Null qualities.

Is This Answer Correct ?    2 Yes 0 No

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

Answer / ananta pilaka

Primary key is only one and it is clustered index.

Unique key cannot be referred as foreign key contraint of
another table.

Is This Answer Correct ?    2 Yes 2 No

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

Answer / samir kumar sahoo.

no. bcoz we can insert null values in the column which
contains the combination of constraints as
UNIQUE+ NOT NULL

but in case of primary key we can't use null values in that
primary key column

Is This Answer Correct ?    2 Yes 8 No

Post New Answer

More Oracle General Interview Questions

Whether Oracle satisfy more codd rules or db2 satisfy more codd rules? How meny of each can satisfy ? Please answer me. Advance thanks

2 Answers   IBM,


What is a schema in oracle?

0 Answers  


Table E: Name dept month sal 1 A JAN 800 2 B APR 1000 3 A JAN 300 4 A JAN 600 5 C JUN 400 1) SELECT HIGHEST SAL PAID DEPT IN JAN MONTH? 2) WRITE QUERY GET MAX SAL DEPT NO?

6 Answers   IBM,


How to divide query output into groups in oracle?

0 Answers  


I just want to maintain data like an employee can belongs to 3 or more departments . We can resolve this by using composite key but it avoids normalization rules. So Can anyone tell me how can I maintain data.

0 Answers   IBM,


What are the components of logical database structure in oracle database?

0 Answers  


query to find the maximum no persons with same age(age colomn) from emp table

1 Answers  


What are the different types of databases?

1 Answers  


What is the maximum limit on the number of columns in a table?

0 Answers  


What is the difference between "as" and "is" in an oracle stored procedure?

0 Answers  


Can we create more than one index on particular column?

1 Answers  


What is connection pool in oracle?

0 Answers  


Categories
  • Oracle General Interview Questions Oracle General (1808)
  • 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)