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 |
diff b/w function and procedure?
What is sql resultset?
wht is the difference between truncat,drop in sqlserver wht is the difference between function and stored procedure
What is sql used for?
How do I find duplicates in two columns?
when is the use of update_statistics command? : Sql dba
<<labele>> declare a=10 b=20, begin some statements declare a=30 c=40 end; what is the A value in nested block?
What is the difference between the implicit and explicit cursors?
Name Salary Abc 50000 Abc 50000 xyz 20000 find the max salary using aggregate function?
What is the starting oracle error number? What is meant by forward declaration in functions?
Explain 3 basic parts of a trigger.
How do you change a value in sql?