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

If there exist a index on the table, and we then make a view on that table (include the indexed column from base table) than why do we require indexing on view?Doesnt it create an overhead?

2 Answers  


What are acid properties of transaction?

0 Answers  


Do you know what are the restrictions applicable while creating views? : SQL Server Architecture

0 Answers  


What is the sql server agent?

0 Answers  


How can you transfer data from a text file to a database table? Or how can you export data from a table to a comma delimited (csv) file? Or how can you import data from ms access to a table in a database? Or how can you export data from a table to an excel file?

0 Answers  






What is indexed view? How to create it?

0 Answers  


What is indexing explain it with an example?

0 Answers  


What are the different Authentication modes in SQL Server and how can you change authentication mode?

0 Answers  


How to select true false based on column value in sql server?

0 Answers  


How to create a dynamic cursor with the dynamic option?

0 Answers  


How to end a stored procedure properly in ms sql server?

0 Answers  


How can you append an identity column to a temporary table?

0 Answers  


Categories