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
Answer / murugananthan
NO, UNIQUE +NOT NULL != PRIMARY KEY
it cant refer someother table column
| Is This Answer Correct ? | 12 Yes | 2 No |
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 |
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 |
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 |
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 |
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 |
What is the difference between a user and a schema in oracle?
What are the restrictions in a oracle read only transaction?
how to select second mauximum value in a given table under salary column
WHAT IS THE DEFINITION OF DEFAULT CUSTOMER IN AR?
Is it possible to join two tables, that are in two different users (e.g. SCOTT and HR etc.),but im same database (e.g. ORCL)? If yes, then how it is possible? Explain with step by step procedure.
How to omit columns with default values in insert statement in oracle?
How many memory layers are in the oracle shared pool?
21. Using a set operator, display the client number of all clients who have ever placed an order and whose whose name does not contain the string Sm.
What is bind variable in oracle 11g?
If server is in US and client is in india there is timezone is diffrence, How can we display date in indian time when data is displayed from US server timezone?
What is the string concatenation operator in oracle?
Who developed oracle & when?