Can a table have two primary keys?
Answer Posted / subbu
Well the question is
Can a table have two primary keys?
Practically Yes.
But theoritically there will be only 1 primary key with
multiple foriegn keys which acts as a composite keys for the
original primary key. How ever in the create or alter
statements, we need to write primary key only once following
the column names either single or multiple.
By seeing the posts, I believe some of the guys has got
confused with the question & compared it with the SQL create
statements where in Primary Key is written only once & by
which concluding that a table cannot have multiple primary keys.
Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
How many types of sql are there?
Can we create foreign key without primary key?
Is sql considered coding?
How bulk collect improves performance?
Why primary key is required?
What is update query?
Is sql free?
How to run pl/sql statements in sql*plus?
How to test for null values?
Is null operator in sql?
what is auto increment? : Sql dba
Determine if oracle date is on a weekend?
what are date and time intervals? : Sql dba
what are the differences among rownum, rank and dense_rank? : Sql dba
What are the parts of a sql statement?