Chapter 4 – ‘Relational Databases’ Flashcards
- The relational data model portrays data as being stored in __________.
a. hierarchies
b. tables
c. objects
d. files
b. tables (Correct. The relational data model portrays data as being stored in a table or relation format.)
- How a user conceptually organizes and understands data is referred to as the __________.
a. physical view
b. logical view
c. data model view
d. data organization view
b. logical view (Correct. The logical view shows how a user conceptually organizes and understands data.)
- What is each row in a relational database table called?
a. relation
b. attribute
c. anomaly
d. tuple
d. tuple (Correct. A tuple is also called a row in a relational database.)
- Which of the following is an individual user’s view of the database?
a. conceptual-level schema
b. external-level schema
c. internal-level schema
d. logical-level schema
b. external-level schema (Correct. The external-level schema represents an individual user’s view of the database.)
- Which of the following would managers most likely use to retrieve information about sales during the month of October?
a. DML
b. DSL
c. DDL
d. DQL
d. DQL (Correct. DQL—data query language—is used to retrieve information from a database.)
- Which of the following attributes would most likely be a primary key?
a. supplier name
b. supplier number
c. supplier Zip code
d. supplier account balance
b. supplier number (Correct. A unique number can be assigned as a primary key for each entity.)
- Which of the following is a software program that runs a database system?
a. DQL
b. DBMS
c. DML
d. DDL
b. DBMS (Correct. A DBMS—database management system—is a software program)
- The constraint that all primary keys must have nonnull data values is referred to as which of the following?
a. referential integrity rule
b. entity integrity rule
c. normalization rule
d. relational data model rule
b. entity integrity rule (Correct. Every primary key in a relational table must have a nonnull value.)
- The constraint that all foreign keys must have either null values or the value of a primary key in another table is referred to as which of the following?
a. referential integrity rule
b. entity integrity rule
c. foreign key value rule
d. null value rule
a. referential integrity rule (Correct. The referential integrity rule stipulates that foreign keys must have values that correspond to the value of a primary key in another table or be empty.)
- Which of the following attributes in the Cash Receipts table (representing payments received from customers) would most likely be a foreign key?
a. cash receipt number
b. customer check number
c. customer number
d. cash receipt date
c. customer number (Correct. Customer number would be a foreign key in the Cash Receipts table and would link the Cash Receipts table to the Customer Table.)