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 is the use of %rowtype?
How do you write a subquery?
Write a program that shows the usage of while loop to calculate the average of user entered numbers and entry of more numbers are stopped by entering number 0?
what command is used to create a table by copying the structure of another table including constraints ?
what is “go” in t-sql? : Transact sql
What is the difference between joins?
what is the difference between union and union all
14 Answers IBM, Luxoft, Oracle,
how many sql dml commands are supported by 'mysql'? : Sql dba
What is an implicit commit?
What are views in sql?
Whis is not false in primary key?
How many null values can be inserted in a coulmn whihc is unique constraint
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)