answersLogoWhite

0


Best Answer

Referential Integrity

Referential integrity means that the foreign key in any referencing table must always refer to a valid row in the referenced table. Referential integrity ensures that the relationship between two tables remains synchronized during updates and deletes.

For example, assume that your application has both a Titles table and a Publishers table as shown in the following table.

Titles table Publishers table ti_isbn (key) pu_id (key) ti_title pu_name ti_yearpublished pu_address pu_id (foreign key) pu_phone

Referential integrity requires that these two tables must be synchronized. That is, each publisher identification (pu_id) in the Titles table must also exist in the Publishers table.

Your application cannot just delete the pu_id row from the Publishers table because that would leave the pu_id in the Titles table without a reference. It would be permissible, however, to delete the pu_id row from the Publishers table and also delete every row in the Titles table that has the same pu_id. Such an action would maintain referential integrity for these two tables.

In a similar manner, your application cannot just add a row to the Titles table without a valid pu_id already in the Publishers table. To do so would insert "bad" data in the pu_id field. So, your application must ensure a valid pu_id key in the Publishers table before inserting the pu_id in the related Titles row.

The actual implementation of referential integrity depends entirely on the data storage engine you choose and your application's design requirements. Historically, applications using mainframe VSAM files used application code to handle referential integrity. Today, even if your application uses SQL Server, that does not mean you must use triggers, foreign keys, constraints, and cascading deletes to maintain referential integrity. You might again choose to handle referential issues with application-based code.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar
More answers
User Avatar

AnswerBot

1mo ago

Referential integrity is a database concept that ensures relationships between tables are maintained. It ensures that a foreign key in one table points to a valid, existing primary key in another table, preventing orphaned records or invalid data relationships. This helps maintain data consistency and accuracy within the database.

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

To make sure that the relationship between tables are consistent. <3

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What do you mean by Referential Integrity?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Write a program to implement domain and referential integrity?

give me the program which can related on domain and referential integrity.


What happens if referential integrity is not enforced?

If referential integrity is not enforced on database then there is no integrity at all. You are just believing that your data will remain integrated on its own .


What does a database displays both entity integrity and referential integrity mean?

it means when data is displaying all the feilds


What does referential integrity mean?

it means when something got a error or it breaks down


How can referential integrity be enforced in an object-oriented system in uml?

Referential Integrity ensures that an object identifier in an object is actually referring to an object that exists.


In what field is referential integrity applied?

Referential integrity is a system that prevents and ensures users from entering inconsistent data. It is usually applied in the technology field for example, Microsoft.


When is the table exhibit referential integrity?

A table exhibit referential integrity when all foreign key values in a table point to existing primary key values in the referenced table. This ensures that the relationship between the tables is maintained and that data integrity is preserved.


Explain the differences between entity integrity and referential integrity?

Entity integrity ensures that each row in a table is uniquely identifiable by a primary key, while referential integrity ensures that relationships between tables are accurately maintained when data is inserted, updated, or deleted. In essence, entity integrity concerns the uniqueness of data within a table, and referential integrity concerns the relationships between data across different tables.


Why is it desirable to enforce the referential integrity rules and entity integrity rules?

Database Management Systems ensure consistent data if the database is modeled using proper referential integrity. For example, if a Customer record is deleted from the system, all Orders and Order Items pertaining to that Customer should ideally be cleaned up. Same thing is true for a specific Order. Such logic need not be in the application, instead you can set up database referential integrity rules to perform these cascading actions automatically for you.


What is referencial integrity in access?

Referential Integrity is a set of rules that a DBMS (Database management system) follows to ensure that there are matching values in the common field used to create the relationship between related tables and that protects the data in related tables to make sure that data is not accidentally deleted or changed.


Why are entity integrity and referential integrity important in a database?

It's the key to correct data being entered in the database. It's the rules that govern what can be inserted and what cannot.


A set of rules that Access uses to ensure that the data between related tables is valid?

Referential integrity.