COMP 251 Final Flashcards
(128 cards)
Relationship level integrity is part of overall data integrity
True
2 tables can participate in multiple types of relationships with each other.
False
A one-to-many relationship can only exist between 2 tables.
False
You will need a Primary Key and a Foreign Key when you establish a 1-M relationship.
True
An advantage of relating tables is that you can draw data from multiple tables simultaneously.
True
1:M + 1:M = 2:M
False
It is appropriate for a Foreign Key to have the same name as a Primary Key.
True
Cascading deletes will delete records in a parent table and all associated records in a child table.
True
(Open Quiz 2 Diagram image)
The diagram represents a self-referencing relationship.
True
(Open Quiz 2 Diagram image)
It is mandatory for employees and mentors to exist in the table.
False
(Open Quiz 2 Diagram image)
A deletion rule is present that restricts deletions in certain situations.
False
(Open Quiz 2 Diagram image)
A mentor can have only one employee mentee.
False
(Open Quiz 2 Diagram image)
Degree of participation is correctly diagramed.
False
A SQL join is not a physical nor a logical data base structure.
True
Application oriented rules are not valid business rules.
False
Which item describes a relationship type?
A. one-to-many
B. mandatory
C. maximum
D. cascade
E. referential
A
A relationship exists between two tables that are ___________________ to each other.
A. physically related
B. logically related
C. RDBMS related
D. joined via SQL
E. none of these
B
A table with curved corners represents a __________.
A. data table
B. linking table
C. validation table
D. subset table
E. none of these
D
A table with distinct columns on both the right and left ends represents a _________.
A. data table
B. linking table
C. validation table
D. subset table
E. none of these
B
You completed the process for identifying a relationship between a Client Table and an Account Executives Table. You concluded that a single record in the Account Executives table can have one or more records in the Client Table and that a single record in the Client Table can have one or more records in the Account Executives table. You concluded that you need to:
A. define a one-to-many relationship
B. define a self-referencing relationship
C. define a subset relationship
D. define an alias field for the relationship
E. none of these
E
You have a Foreign Key in Table B that is associated with a Primary Key in Table A. Further, you have a 1-M relationship between Table A and Table B. In the logical elements field specifications for the Foreign Key, you will set the Uniqueness Element as:
A. non-unique
B. unique
C. FK
D. Replica
E. No Nulls
A
You have a parent Table A that has a 1-1 relationship with Table B. You want to ensure that a record in Table A is not deleted and remains active when you have a record in Table B. You establish a deletion rule of:
A. Set Default
B. Nullify
C. Cascade
D. Restrict
E. Deny
D
Refer to this SQL for questions 8 and 9.
SELECT employee_number, employee_last_name, employee_first_name, annual_salary
FROM Employee, Salary
WHERE Employee.employee_number = Salary.employee_number;
In this SQL, you will:
A. Get a valid result as long as the right table relationships have been established.
B. Get an error since going across tables in this manner is a relationship violation.
C. Get a valid results set, but the output will be restricted.
D. Get an error since you can’t compare fields across tables on a WHERE clause.
E. “a” and “c”
E
Refer to this SQL for questions 8 and 9.
SELECT employee_number, employee_last_name, employee_first_name, annual_salary
FROM Employee, Salary
WHERE Employee.employee_number = Salary.employee_number;
In this SQL, you have:
A. fully qualified column names
B. alias table names
C. outer join syntax
D. “a” and “c”
E. all of these
A