adspace


Why do we need a foreign key?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I remove duplicates in two columns?

1202


what is schema? : Sql dba

1163


What is the current version of postgresql?

1188


how many tables will create when we create table, what are they? : Sql dba

1156


define sql insert statement ? : Sql dba

1110


what is collation? : Sql dba

1242


What is your daily office routine?

2353


what is dbms? : Sql dba

1070


Does group by remove duplicates?

1120


If a cursor is open, how can we find in a pl/sql block?

1252


what are all the common sql function? : Sql dba

1141


Hi am new to PLSQL & facing problems in writing code like in SP, Functions, so any one having some SP coding with in depth explanation please share with me my Email ID suvarnaatsuvarna@rediffmail.com Or taking tanning on this please do contact me

2102


What is the best sql course?

1064


what are aggregate and scalar functions? : Sql dba

1142


Is primary key always clustered index?

1101