chapter 2 quiz Flashcards
Which of the following is true about a key?
A) It may be non-unique.
B) It may be unique.
C) It can only identify one row.
D) Both It may be unique and It may be non-unique
E) None of these
D) Both It may be unique and It may be non-unique
A(n) ________ is one or more columns of a relation that is used to identify a row.
A) key
B) attribute
C) Record
D) database
A) key
To be considered a composite key, a key must contain at least two attributes. (T/F)
True
A key must be unique.
False
If the condition exists such that knowing the value of attribute X determines the value of attribute Y, then attribute Y is functionally dependent on attribute X. (T/F)
True
The primary key is used to identify unique rows in a relation. (T/F)
True
Ensuring that every value of a foreign key matches the value of the corresponding primary key is an example of a referential integrity constraint. (T/F)
True
While the relational model for databases appears to hold much promise, few commercial databases have implemented it. (T/F)
False
A primary key is ________.
A) a candidate key
B) used to represent columns in relationships
C) always automatically generated by the DBMS
D) comprised of exactly one attribute
E) not required to be unique
A) a candidate key