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...
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...
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),...
Sensor Model Price Safety XBR20 85,624.21 High GTX50 64,262.05 Low BUS100 79,522.00 High BUS200 32,572.60 Medium...
Sensor Model Price Safety XBR20 85,624.21 High GTX50 64,262.05 Low BUS100 79,522.00 High BUS200 32,572.60 Medium Another table SensorTest uses TestCase column as Primary Key, and its SensorModel column is a Foreign Key that refers to Model column of Car Table. Four data entities already exist in the table as shown below. SensorTest TestCase (PK) SensorModel (FK) Tester Result T001 XBR20 Mike Acceptable T002 GTX50 Jane Unacceptable T003 GRX50 Mike Acceptable T004 BUS100 Mike Acceptable Which of the following SQL...
1.Consider the following (normalized) relational model (primary keys are underlined, foreign keys are in italics). EMPLOYEE(SSN,...
1.Consider the following (normalized) relational model (primary keys are underlined, foreign keys are in italics). EMPLOYEE(SSN, ENAME, EADDRESS, SEX, DATE_OF_BIRTH, SUPERVISOR, DNR) S U P E R V I S O R : foreign key refers to SSN in EMPLOYEE, NULL value allowed D N R : foreign key refers to DNR in DEPARTMENT, NULL value not allowed DEPARTMENT(DNR, DNAME, DLOCATION, MGNR) MGNR: foreign key refers to SSN in EMPLOYEE, NULL value not allowed PROJECT(PNR, PNAME, PDURATION, DNR) DNR: foreign...
Create 2 stored procedures: sp_AddNewUser and sp_AddNewRole. Use the ManyToMany script as your base table structures....
Create 2 stored procedures: sp_AddNewUser and sp_AddNewRole. Use the ManyToMany script as your base table structures. The stored procedure should accept the parameters needed to input the data for each table. NOTE: You do not need to input the UserID or RoleID. These are surrogate keys and the system automatically inserts them when you insert a row in the tables.   On execution, the stored procedure should check the database to see if the user exists, if so, return a message...