This topic contains a solution. Click here to go to the answer

Author Question: What relationship pattern is illustrated in the following schema? PRODUCT (ProductID, Description) ... (Read 25 times)

karlynnae

  • Hero Member
  • *****
  • Posts: 599
What relationship pattern is illustrated in the following schema? PRODUCT (ProductID, Description) SUPPLIER (SupplierID, ContactName, PhoneNumber) PRODUCT_SUPPLIER (ProductID, SupplierID, Cost) ProductID in PRODUCT_SUPPLIER must exist in ProductID in
 
  PRODUCT SupplierID in PRODUCT_SUPPLIER must exist in SupplierID in PRODUCTA) Association relationship
  B) Intersection relationship
  C) Recursive relationship
  D) Strong entity relationship
  E) Supertype/subtype relationship

Question 2

What are referential integrity constraints? Give an example.
 
  What will be an ideal response?



Related Topics

Need homework help now?

Ask unlimited questions for free

Ask a Question
Marked as best answer by a Subject Expert

kaykay69

  • Sr. Member
  • ****
  • Posts: 322
Answer to Question 1

A

Answer to Question 2

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.




karlynnae

  • Member
  • Posts: 599
Reply 2 on: Jul 7, 2018
Thanks for the timely response, appreciate it


EAN94

  • Member
  • Posts: 307
Reply 3 on: Yesterday
Gracias!

 

Did you know?

Asthma occurs in one in 11 children and in one in 12 adults. African Americans and Latinos have a higher risk for developing asthma than other groups.

Did you know?

Always store hazardous household chemicals in their original containers out of reach of children. These include bleach, paint, strippers and products containing turpentine, garden chemicals, oven cleaners, fondue fuels, nail polish, and nail polish remover.

Did you know?

Approximately 15–25% of recognized pregnancies end in miscarriage. However, many miscarriages often occur before a woman even knows she is pregnant.

Did you know?

Not getting enough sleep can greatly weaken the immune system. Lack of sleep makes you more likely to catch a cold, or more difficult to fight off an infection.

Did you know?

In women, pharmacodynamic differences include increased sensitivity to (and increased effectiveness of) beta-blockers, opioids, selective serotonin reuptake inhibitors, and typical antipsychotics.

For a complete list of videos, visit our video library