Which of the following describes referential integrity?
A. A Primary Key of a relational table must not contain a null value
B. One fact must not be in multiple places
C. The value for a foreign key attribute must either be null or match the one of the data value of that attribute in the table in which the attribute is a primary key
D. Referential Integrity is a principle that prevents the use of redundancy, avoids null values and creates a minimal database
E. Multiple facts must not be stored in a single cell
Which of the following is most likely a violation of the one-fact, one-place rule
A. Customer Id is used as a primary key of a sale table table
B. Cash Receipt id is posted as a foreign key in a sale table for a company that requires immediate cash payment in full for each sale
C. A Separate Table is created to represent an association between warehouses and inventory with multiplicities 1..* - 0..* and the attribute "quantity on hand" is assigned to the association table.
D. Customer id posted as a foreign key in a sale table
E. A separate table is created to represent an association between Purchase and Cash, Disbursement with multiplicities 0..1 - 0..1 and the attribute " Amount of Cash Disbursement Applied to a Purchase" is assigned to the association table
1) C. The value for a foreign key attribute must either be
null or match one of the data values in the table in which the
attribute is a primary key
2) A. Customer ID is used as the primary key of a Sale table.
Which of the following describes referential integrity? A. A Primary Key of a relational table must...
Match the following words and explanations Domain Integrity Entity integrity Referential Integrity Explanations: A: All values in a single column belong to the same scope of meaning B: Each primary key value must have a matching value in the Foreign Key C: The table has a primary key, which may be NULL D: Each Foreign Key value must have a matching value in the Primary key E: The table has a Primary key, which is never NULL
QUESTION 6 Which of the following statements best illustrates the "Key" constraint? The schema MUST be created before tables are added A primary key MUST NOT have duplicate values A foreign key value MUST have a value already present as a primary key in another table (or be NULL) A primary key value MUST have a value QUESTION 7 Which of the following statements best illustrates the "Referential Integrity" constraint? The schema MUST be created before tables are added A...
QUESTION 1 What is the most common relationship within a relational database? Select the best answer from the following. One-To-One relationship. o One-To-Many relationship. Many-To-Many relationship. Zero-To-Zero relationship. QUESTION 2 What is an "entity'? Select the best answer from the following. An entity, for our purposes, is the same as a table in the database. An entity represents one of the columns in an individual table. There are no entities in a relational database. Entities are only part of NoSQL...
Referential integrity constraints should disallow adding a new row to a child table when the foreign key does not match a primary key value in the parent table. True or False All database applications send and receive database data by sending SQL statements to the DBMS. True or False A candidate key is a combination of one or more columns that is used to identify particular records in a table. True or False Which of the following is a candidate...
CREATE TABLE Gender ( gender CHAR(1), description VARCHAR(10), PRIMARY KEY (gender) ); CREATE TABLE People ( ID INT, name VARCHAR(50), gender CHAR(1), height FLOAT, PRIMARY KEY (ID), FOREIGN KEY (gender) REFERENCES Gender (gender) ); CREATE TABLE Sports ( ID INT, name VARCHAR(50), record FLOAT, PRIMARY KEY (ID), UNIQUE (name) ); CREATE TABLE Competitions ( ID INT, place VARCHAR(50), held DATE, PRIMARY KEY (ID) ); CREATE TABLE Results ( peopleID INT NOT NULL, competitionID INT NOT NULL, sportID INT NOT NULL,...
List the characteristics that a table must have to be considered a relation. List two synonyms for “file,” two for “record,” and two for “field.” What are the four uses of a primary key? What are the desirable characteristics of a primary key? What is a surrogate key and when do you use them? What is a foreign key? What is referential integrity and why is it important? What are the three possible interpretations of a null value? What is...
Please convert figure 9.9 in p305 into relational
schemas.
In the table, the primary key and foreign keys (arrows)
must be identified.
Engin size CAR Vin Price VEHICLE d TRUCK Tonnage Model N Date SUV No seats SALE SALESPERSON CUSTOMER Address City Street Sid Name Ssn State Name Figure 9.9 EER diagram for a car dealer
Consider the following tables: PAINTER(P_NUMBER, P_LNAME, P_FNAME, P_MAIL) PAINTING(PAINT_CODE, PAINT_TITLE, P_NUMBER) For the tables given above, work on the problems below: 1. For each table, identify the primary key. 2. For each table, identify the foreign key(s). 3. Identify at least one candidate key. If there are no candidate keys, give an example of an attribute that could be used as a candidate key. 4. For one of the tables, give examples of a superkey and a secondary key. 5....
Given the following relational database schema (primary keys are bold and underlined). Answer questions 2.1 to 2.4 Orders(orderld, customerld, dateOrdered, dateRequired, status) Customer(customerld, customerLastName, customerStreet, customerCity, customerState, customer Lip OrderDetails(orderld.productld, quantity, lineNumber, amount) Products(productld, name, description, quantity, unitPrice) Account(accountNumber, customerld, dateOpened, creditCard, mailingStreet, mailingCity, mailingState, mailingZip) 2.1 (2 Points) List all possible foreign keys. For each foreign key list both the referencing and referenced relations. 2.2 (2 Points) Devise a reasonable database instance by filling the tables with data of...
1. Which of the following best describes the meaning of the
multiplicities next to the number 1 in the preceding diagram?
Stocks are traded in only one exchange.
Stocks are traded in at least one exchange.
Stocks are traded in a minimum of zero exchanges.
Stocks are traded in a maximum of many exchanges.
Both c and d are correct.
2. Which of the following best describes the meaning of the
multiplicities next to the number 2 in the preceding...