what are primary key and foreign key ?
Answers were Sorted based on User's Feedback
Answer / neo devan
Primary key is the attribute which satisfies both
uniqueness and Not null constraints.
The foreign key is a attribute that points to a valid
column in a parent table.
its used for referencing primary key.
| Is This Answer Correct ? | 8 Yes | 1 No |
Answer / rukumanikhandhan
primary key is the key which follows uniqueness in the
entire table.
primary key of one table will be called as foreign key in
another table.
| Is This Answer Correct ? | 7 Yes | 2 No |
Answer / sabeena parveen
primary key is an attribute which uniquely identifies each
record in the table.
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / radha
Columns acting as a primary key will always hold unique
values.
Foreign key should always be a primary key of some table
| Is This Answer Correct ? | 1 Yes | 0 No |
What is executive plan?
What are the different types of keys in the database?
Why c++ used in clipper?
What do you understand by aggregation and atomicity?
What is rdbms and also explain its components?
What are the types of model?
How is data stored in a database?
What is authorization and integrity manager?
If an UNIQUE KEY constraint on DATE column is created, will it accept duplicate values?
How do you call a stored procedure from jdbc?
What are the characteristics of data in the database?
What is the use of FULL option in EXP command ?
Oracle (3259)
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)