Can a table have two primary keys?
Answers were Sorted based on User's Feedback
Answer / anand
Yes table can have two or more primary key,when we want to
create more then one primary we use unique constranit with
not null or we can create with triggre.
Is This Answer Correct ? | 1 Yes | 6 No |
Yes table can have two or more primary key.
Is This Answer Correct ? | 1 Yes | 9 No |
Answer / ashwin kumar
yes, a table may have more than 1 primary keys but, of them
we only choose 1 column as identifiable column called
primary key. The other columns are called surrogate keys or
candidate key.
Is This Answer Correct ? | 25 Yes | 43 No |
Answer / jamalvalli
Yes we can use. for Example
create table emp(empno number(5), ename varchar2(20),
deptno number(5) add primary key Pk_constraint( empno,
deptno))
Is This Answer Correct ? | 18 Yes | 38 No |
Explain commit, rollback and savepoint.
What does <> sql mean?
What is materialized view. What are different methods of refresh?
what is difference between procedure and function
10 Answers MCN Solutions, Wipro,
Can a table contain multiple primary key’s?
What is the Diff b/w Constraints and Trigeer
Why do we use sql constraints?
please explain database architecture..
What is the difference between having clause and where clause?
How do I write a sql query in pgadmin 4?
I Have A Table Like This. Cityno Cityname Mails 1 Bangalore 8km 2 Hsr Layout 20km 3 Mejistic 30km 4 Jayadeva 55km 5 Itpl 80km 6 Hebbal 115km I Have Data Like This I Want O/p Like This Distance No.ofcity 0-50km 3 51-100km 2 101-150km 4 And So On
How exception handling is done in advance pl/sql?