What are "referential integrity constraints"? Give an example
What will be an ideal response?
A referential integrity constraint is a rule that restricts certain actions on the database data. A referential integrity constraint is used to ensure that the values in a field in one table have matching values in a corresponding field in another table. These constraints are enforced by the DBMS, which will not allow changes to the values of the database that would result in violations of this rule. For example, a database has an EMPLOYEE table and a VEHICLE table that are used to store data on employees and the vehicles that they are assigned to drive. The EMPLOYEE table has a column called EmployeeID that is used to distinguish one employee record from another. The VEHICLE table also has an EmployeeID column that is used to associate a vehicle with the appropriate employee. A referential integrity constraint could be used to prevent a vehicle from being assigned to an employee with an EmployeeID that does not appear in the EMPLOYEE table by requiring that all values in EmployeeID in the VEHICLE table have a matching value in EmployeeID in the EMPLOYEE table.
You might also like to view...
Which of the following is not an element of corporate imagination?
a. Overturn price–performance assumptions b. Escape the tyranny of the served market c. Use new sources of ideas for innovative product concepts d. Get out in front of customers e. Identify a network of "Angels"
Given two statistically independent events (A,B), the joint probability of P(AB) = P(
A) + P(B).