Why do we need a foreign key?



Why do we need a foreign key?..

Answer / Vikash Raj

A foreign key is needed in a database to establish a relationship between tables by referencing the primary key of another table. This helps maintain data integrity and consistency across multiple tables.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More SQL PLSQL Interview Questions

How pl/sql source code can be protected?

3 Answers  


How delete all data from all tables in sql?

1 Answers  


Can we call a function containing dml statements in a select query?

1 Answers  


Explain what is an index?

1 Answers  


What are sql queries used for?

1 Answers  


what are the types of join and explain each? : Sql dba

1 Answers  


Does sql support programming?

1 Answers  


what is bdb (berkeleydb)? : Sql dba

1 Answers  


How many columns should be in an index?

1 Answers  


What is nested table in pl sql?

1 Answers  


how to use myisamchk to check or repair myisam tables? : Sql dba

1 Answers  


What is a stored procedure ?

9 Answers  


Categories