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 |
How can we optimize a sql query?
In what condition is it good to disable a trigger?
What are pl sql procedures?
Is grant a ddl statement?
what is the difference between varray and table data type..please expalain with some examples... under what situation you will go for varray..instead of index by table...
How do I restart sql?
why should required nested tables, Object types, partition tables and varying arrays. what is the difference between these are all. give me example with explanation.
What are types of joins?
what is the functionality of the function htmlentities? : Sql dba
How do I run pl sql in sql developer?
what are rollup and cube in t-sql? : Transact sql
Which function is used to return remainder in a division operator in sql?