define primary key & secondary key?
Answers were Sorted based on User's Feedback
Answer / manoj
primary key is a key which always accept unique value.
secondary key is a key which when you are making primary key
for more than one column as primary key for retrieving of
reords.
eg.
create table tnam
(ano number,
bno number,
bname char(12),
primary key(ano,bno))
In this bno is secondary key.
Is This Answer Correct ? | 31 Yes | 18 No |
Answer / renu kakkar
PRIMARY REPRESENTS THE ROW/TUPPLE UNIQUELY WHEREAS
SECONDARY KEY REPRESENTS THE SET OF TUPPLES
EMPLOY_ID IS A PRIMARY KEY AND EMPLOY_DEPTT. IS A SECONDARY
KEY.
Is This Answer Correct ? | 3 Yes | 9 No |
What are the types of dbms?
what are enums used for in mysql? : Sql dba
What is the difference between Union and Union all. Which is faster.
a procedure one in two out parameters i am waiting it in a sql query can i get the output
What is a parameter query?
TABLE A TABLE B EMPNO ENAME EMPNO ENAME 1 A 1 A 2 B 2 B 3 C 3 C 4 D 4 D 5 E 5 E 6 F 7 G HOW TO GET THE UNMATCHED RECORDS IN SQL QUERY?
What is the difference between an inner and outer join?
Why is sql better than hql?
What are character functions?
What is the difference between numeric and autonumber?
Can we have exception part in trigger ?
What is Materialized View? In What Scenario we Use Materialized View?