What is referential integrity? What are the advantages of it?

Answers were Sorted based on User's Feedback



What is referential integrity? What are the advantages of it?..

Answer / anand

Referential integrity
Referential integrity in a relational database is
consistency between coupled tables. Referential integrity
is usually enforced by the combination of a primary key or
candidate key (alternate key) and a foreign key. For
referential integrity to hold, any field in a table that is
declared a foreign key can contain only values from a
parent table's primary key or a candidate key. For
instance, deleting a record that contains a value referred
to by a foreign key in another table would break
referential integrity. A relational database management
system (RDBMS) enforces referential integrity, normally
either by deleting the foreign key rows as well to maintain
integrity, or by returning an error and not performing the
delete. Which method is used would be determined by the
referential integrity constraint, as defined in the data
dictionary.

Is This Answer Correct ?    44 Yes 7 No

What is referential integrity? What are the advantages of it?..

Answer / daynik

Referential integrity is a database concept that ensures
that relationships between tables remain consistent. When
one table has a foreign key to another table, the concept of
referential integrity states that you may not add a record
to the table that contains the foreign key unless there is a
corresponding record in the linked table. It also includes
the techniques known as cascading update and cascading
delete, which ensure that changes made to the linked table
are reflected in the primary table.

Is This Answer Correct ?    11 Yes 5 No

What is referential integrity? What are the advantages of it?..

Answer / rajdeo kumar

it show referance to another location with accuracy.

Is This Answer Correct ?    10 Yes 28 No

What is referential integrity? What are the advantages of it?..

Answer / ramakrishna

refrential nothing but forgein key

Is This Answer Correct ?    13 Yes 32 No

Post New Answer

More SQL Server Interview Questions

Can we take the full database backup in log shipping?

0 Answers  


How can you hide the sql server instances?

0 Answers  


What is a function? Give some example?

3 Answers  


What are system databases into sql server (2005/2008) : sql server database administration

0 Answers  


any one can explain Self mapping Delegation Remote Credentials

1 Answers  






How self join is different from outer join?

0 Answers   Blue Star,


What do we have to check in database testing?

0 Answers  


What are types of subqueries?

0 Answers  


how many clustered indexes can be created on a table? : Sql server database administration

0 Answers  


Is INSTEAD OF trigger directly applicable to Table ?

0 Answers  


What is the stuff?

0 Answers  


1.what are diff types of joins , and explain diff between cross join and full outer join 2.diff types of views 3. Diff types of index 4. What is diff b/w stores procedure and function procedure 5.diff between double and int in SQL 6.diff between char and varchar in SQL. 7.Oracle or SQL whice you will preferred and why.

0 Answers   Aptroid,


Categories