Question

Suppose TeacherID is the primary key of one table (e.g., the Teachers table) and the foreign...

Suppose TeacherID is the primary key of one table (e.g., the Teachers table) and the foreign key of another table (e.g., the TopPayingJobs table). If you can’t enforce the referential integrity relationship between these two tables, what might be the cause?

a. The values of the primary key column are referenced by the values of the foreign key column.

b. The foreign key contains duplicate data.

c. The foreign key column contains values that do not exist in the primary key column.

d. None of the above.

Homework Answers

Answer #1

If you can’t enforce the referential integrity relationship between these two tables then The foreign key column contains values that do not exist in the primary key column.

Referential integrity gives the following properties of the data

  • Accuracy of the data and
  • Consistency of the data

If there is no referential integrity, it indicates that there is a record in foreign key which is not exist in the primary key.

No referential integrity found when delete a record in the primary key table which is referred by the foreign key table.

Option C

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
1. Suppose StudentID is the primary key of one table (e.g., the Students table) and the...
1. Suppose StudentID is the primary key of one table (e.g., the Students table) and the foreign key of another table (e.g., the Top10DesiredJobs table). If you can’t enforce the referential integrity relationship between these two tables, what might be the cause? Select one: a. The values of the primary key column are referenced by the values of the foreign key column. b. The foreign key contains duplicate data. c. The foreign key column contains values that do not exist...
In MS Access, if you have two related tables and you check the box to enforce...
In MS Access, if you have two related tables and you check the box to enforce referential integrity, how does the software behave during the insertion of a new record into the many table? Question 34 options: 1) It prevents a row from being inserted into the many table if the data in the foreign key column does not match any of the values in the primary key column of the one table. 2) It prevents any records from being...
What is the function of the foreign key when referring to tables in a relational database?...
What is the function of the foreign key when referring to tables in a relational database? Question options: To encrypt data using a symmetrical key To provide a unique identifier for each row of a table To decrypt data using an asymmetrical key To lookup values in a parent table to ensure referential integrity
a) If a referential integrity constraint (foreign key) is defined with the ON DELETE CASCADE option...
a) If a referential integrity constraint (foreign key) is defined with the ON DELETE CASCADE option on a column in a table, what rules will be enforced on the data in that column and on the corresponding referenced table? Explain with a clear example. b) Given the following schema, answer the queries using relational algebra and SQL Employee (person-name, street, city) Works (person-name, company-name, salary) Company (company-name, city) Manages (person-name, manager-name) (i). Find the names and cities of residence of...
Here are SQL declarations for three tables R, S, and T: CREATE TABLE R(e INT PRIMARY...
Here are SQL declarations for three tables R, S, and T: CREATE TABLE R(e INT PRIMARY KEY, f INT); CREATE TABLE S(c INT PRIMARY KEY, d INT REFERENCES R(e) ON DELETE CASCADE); CREATE TABLE T(a INT PRIMARY KEY, b INT REFERENCES S(c) ON DELETE CASCADE); Suppose R(e,f) contains tuples (1,0), (2,4), (3,5), (4,3), and (5,7). Suppose S(c,d) contains tuples (1,5), (2,2), (3,3), (4,5), and (5,4). Suppose T(a,b) contains tuples (0,2), (1,2), (2,3), (3,4), and (4,4). As a result of the...
Which of the following are reasons for having a primary key? All of the other answers...
Which of the following are reasons for having a primary key? All of the other answers are reasons for having a primary key. A primary key identifies each record in the table. Access responds faster to requests for specific records based on the primary key. A primary key prevents duplicate values from being entered in the same field. The ________________ is the name of the model used when designing databases. Data Flow Diagram Entity Relationship Diagram Relative Model Physical Model...
Matching a Schema b DBMS c ODBC d Table e Field f Primary key g Foreign...
Matching a Schema b DBMS c ODBC d Table e Field f Primary key g Foreign key h Normalization i Data warehouse j Data mining 1. Brings together disparate company data sources 2. Also known as a data attribute 3. Standard protocol for data exchange 4. Holds records 5. Looks for trends or patterns 6. Uniquely identifies a record 7. Used to make effective and efficient tables 8. Ties data entity relationships together 9. Allows for data access and manipulation...
7. Choose the appropriate definition for Structured Query Language (SQL) a subset of the Cartesian product...
7. Choose the appropriate definition for Structured Query Language (SQL) a subset of the Cartesian product of a list of domains characterized by a name the standard database access language principle storage unit in a database contains fields that are related 8. What is not a synonym of Table Tuple Table File Relation 9. Choose the correct definition for Composite Key it is a potential primary key - unique key a key that contains two or more attributes the candidate...
1. Which of the following is NOT a type of data anomaly? a. Insertion b. Transformation...
1. Which of the following is NOT a type of data anomaly? a. Insertion b. Transformation c. Deletion d. Modification 2. Functional dependency has the following characteristics EXCEPT a. Attribute Y is functionally dependent upon attribute X, if the value of X uniquely determines the value of Y b. It's a constraint between two tables c. It's a constraint between two attributes (columns) d. Represented as Determinant(s) -> Dependent(s) 3. The definition of a partial dependency is a.One or more...
-- Table construction (just 1 simplest possible way) CREATE TABLE PetType ( petTypeId VARCHAR(10) PRIMARY KEY,...
-- Table construction (just 1 simplest possible way) CREATE TABLE PetType ( petTypeId VARCHAR(10) PRIMARY KEY, animalType VARCHAR(20), breed VARCHAR(20) ); CREATE TABLE Owner ( ownerId VARCHAR(10) PRIMARY KEY, firstName VARCHAR(20), lastName VARCHAR(20) NOT NULL, homePhoneNumber VARCHAR(20), streetAddress VARCHAR(80), suburb VARCHAR(20), postcode VARCHAR(10) ); CREATE TABLE Pet ( petId VARCHAR(10) PRIMARY KEY, petName VARCHAR(20), sex CHAR(1) CHECK (sex IN ('M', 'F')), petTypeId VARCHAR(10) FOREIGN KEY REFERENCES PetType ); CREATE TABLE PetAndOwner ( ownerId VARCHAR(10), petId VARCHAR(10), PRIMARY KEY (ownerId, petId),...