Deck 2: The Relational Model 1: Introduction, QBE, and Relational Algebra

Full screen (f)
exit full mode
Question
A relational database handles entities, attributes, and relationships by storing each entity in its own row.
Use Space or
up arrow
down arrow
to flip the card.
Question
In an AND criterion, the overall criterion is true if either of the individual criteria is true.
Question
The concept of grouping means that statistics will be calculated for individual records.
Question
In the Access Query window, the upper portion of the window contains the design grid.
Question
A relational database is a collection of tables.
Question
The primary key of a table is the row or rows that uniquely identify a given column in that table.
Question
In relational database shorthand, the structure of a relational database is written with the name of the table followed by the columns in the table listed within parentheses.
Question
The field on which records are sorted is called the composite primary key.
Question
A column whose value uniquely identifies a given row in the table is the secondary key.
Question
The relational operators are +, *, %, and /.
Question
To select data from more than one table at the same time, you need to perform a make-table query.
Question
Which term is another word for a row in a table?

A) tuple
B) field
C) group
D) relation
Question
What uniquely identifies a row in a table?

A) attribute
B) column
C) primary key
D) field
Question
The attributes of an entity become the fields or columns in a table.
Question
Which of the following is NOT true about a relation in a two-dimensional table?

A) The entries in the table are single-valued.
B) All values in a column are values of the same attribute.
C) Two or more columns can share the same name.
D) The order of rows is immaterial.
Question
How do you refer to a column named State in a table named Client?

A) State.Client
B) State(Client)
C) Client.State
D) Client(State)
Question
In Access, a parameter query allows you to enter criterion when you run the query.
Question
In a relation, the order of rows is important.
Question
Which of the following is the column or collection of columns that uniquely identifies a given row in that table?

A) primary key
B) secondary key
C) foreign key
D) minor key
Question
A query is a question represented in a way that the DBMS can recognize and process.
Question
Which command creates a table containing all rows that are in either or both of two tables?

A) UNION
B) SUBTRACT
C) JOIN
D) INTERSECT
Question
Which operation is performed by the SUBTRACT command in relational algebra?

A) union
B) difference
C) product
D) intersection
Question
The relationships between tables are implemented through common ____________________.
Question
Which command contains all rows that are common in two tables?

A) UNION
B) SUBTRACT
C) JOIN
D) INTERSECT
Question
The compound criteria (conditions) are created by using which of the following two keywords?

A) AND, OR
B) AND, NOR
C) OR, NOT
D) NOT, ONLY
Question
A(n) ____________________ database is a collection of tables.
Question
Based on the table below, which command creates a new table named CustState containing the fields CustomerNum and State??Customer (CustomerNum, CustomerName, Street, City, State, PostalCode)

A) JOIN Customer WITH (CustomerNum, State) GIVING CustState
B) PROJECT Customer OVER (CustomerNum, State) GIVING CustState
C) SELECT Customer OVER (CustomerNum, State) GIVING CustState
D) MAKE-TABLE CustState FROM Customer WITH (CustomerNum, State)
Question
Which operation will allow you to extract data from more than one table?

A) Select
B) Merge
C) Project
D) Join
Question
Based on the tables below, which command creates a new table named CustSales that combines the Customer and SalesPerson tables based on SalesPersonNum??Customer (CustomerNum, CustomerName, Street, City, State, PostalCode, SalesPersonNum)?SalesPerson (SalesPersonNum, LastName, FirstName)

A) PROJECT Customer SalesPerson WHERE Customer.SalesPersonNum=SalesPerson.SalesPersonNum MAKING CustSales
B) UNION Customer SalesPerson WHERE Customer.SalesPersonNum=SalesPerson.SalesPersonNum MAKING CustSales
C) SELECT Customer SalesPerson JOIN Customer.SalesPersonNum=SalesPerson.SalesPersonNum GIVING CustSales
D) JOIN Customer SalesPerson WHERE Customer.SalesPersonNum=SalesPerson.SalesPersonNum GIVING CustSales
Question
Multiple entries in tables are often called ____________________.
Question
When some of the entries in a structure contain repeating groups and thus are not single-valued, the structure is called a(n) ____________________.
Question
Which of the following is true if two tables have the same number of columns and their corresponding columns represent the same type of data?

A) They are union compatible.
B) They are intersection compatible.
C) They are difference compatible.
D) They are product compatible.
Question
In relational algebra, what command causes only certain columns to be included in the new table?

A) SELECT
B) DELETE
C) PROGRAM
D) PROJECT
Question
Which operator is used to concatenate every row in the first table with every row in the second table?

A) union
B) difference
C) product
D) intersection
Question
What type of query changes data?

A) addition
B) update
C) update
D) select
Question
A ______________ primary key is composed of more than one column so that the row is unique.
Question
Based on the table below, which command lists all information from the table concerning the customer with CustomerNum 260? Customer (CustomerNum, CustomerName, Street, City, State, PostalCode)

A) SELECT Customer 260 RESULTS Answer
B) SELECT Customer WHERE CustomerNum=260 GIVING Answer
C) SELECT Customer GIVING Answer WHERE CustomerNum='260'
D) SELECT Customer WHERE CustomerNum='260' RESULTS Answer
Question
If you are sorting records by more than one field, which field is the more important field?

A) primary sort key
B) secondary sort key
C) maximum sort key
D) minor sort key
Question
What type of query creates a new table using the query results?

A) new-table
B) make-table
C) create-table
D) merge-table
Question
What type of functions are Count, Sum, Avg, Max, and Min?

A) accumulation
B) allowed
C) primary
D) aggregate
Question
Discuss the difference between the major sort key and the minor sort key.
Question
A(n) ______________ query makes a specified change to all records satisfying the criteria in the query.
Question
List the six properties that define a relation in a two-dimensional table.
Question
What is the difference between an AND criterion and an OR criterion?
Question
List at least six of the aggregate functions available in Access.
Question
To list the records in a query's results in a particular order, you need to ____________________ the records.
Question
When both criteria must be true for the compound criterion to be true, the _______________ operator is being used.
Question
Explain what relational algebra is and how it is used.
Question
A query ___________________ is a DBMS component that analyzes queries and attempts to determine the most efficient way to execute a given query.
Question
A ____________________ query in Access allows you to enter criterion when you run the query, as opposed to placing it in the design grid.
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/50
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 2: The Relational Model 1: Introduction, QBE, and Relational Algebra
1
A relational database handles entities, attributes, and relationships by storing each entity in its own row.
False
2
In an AND criterion, the overall criterion is true if either of the individual criteria is true.
False
3
The concept of grouping means that statistics will be calculated for individual records.
False
4
In the Access Query window, the upper portion of the window contains the design grid.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
5
A relational database is a collection of tables.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
6
The primary key of a table is the row or rows that uniquely identify a given column in that table.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
7
In relational database shorthand, the structure of a relational database is written with the name of the table followed by the columns in the table listed within parentheses.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
8
The field on which records are sorted is called the composite primary key.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
9
A column whose value uniquely identifies a given row in the table is the secondary key.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
10
The relational operators are +, *, %, and /.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
11
To select data from more than one table at the same time, you need to perform a make-table query.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
12
Which term is another word for a row in a table?

A) tuple
B) field
C) group
D) relation
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
13
What uniquely identifies a row in a table?

A) attribute
B) column
C) primary key
D) field
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
14
The attributes of an entity become the fields or columns in a table.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
15
Which of the following is NOT true about a relation in a two-dimensional table?

A) The entries in the table are single-valued.
B) All values in a column are values of the same attribute.
C) Two or more columns can share the same name.
D) The order of rows is immaterial.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
16
How do you refer to a column named State in a table named Client?

A) State.Client
B) State(Client)
C) Client.State
D) Client(State)
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
17
In Access, a parameter query allows you to enter criterion when you run the query.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
18
In a relation, the order of rows is important.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
19
Which of the following is the column or collection of columns that uniquely identifies a given row in that table?

A) primary key
B) secondary key
C) foreign key
D) minor key
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
20
A query is a question represented in a way that the DBMS can recognize and process.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
21
Which command creates a table containing all rows that are in either or both of two tables?

A) UNION
B) SUBTRACT
C) JOIN
D) INTERSECT
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
22
Which operation is performed by the SUBTRACT command in relational algebra?

A) union
B) difference
C) product
D) intersection
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
23
The relationships between tables are implemented through common ____________________.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
24
Which command contains all rows that are common in two tables?

A) UNION
B) SUBTRACT
C) JOIN
D) INTERSECT
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
25
The compound criteria (conditions) are created by using which of the following two keywords?

A) AND, OR
B) AND, NOR
C) OR, NOT
D) NOT, ONLY
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
26
A(n) ____________________ database is a collection of tables.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
27
Based on the table below, which command creates a new table named CustState containing the fields CustomerNum and State??Customer (CustomerNum, CustomerName, Street, City, State, PostalCode)

A) JOIN Customer WITH (CustomerNum, State) GIVING CustState
B) PROJECT Customer OVER (CustomerNum, State) GIVING CustState
C) SELECT Customer OVER (CustomerNum, State) GIVING CustState
D) MAKE-TABLE CustState FROM Customer WITH (CustomerNum, State)
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
28
Which operation will allow you to extract data from more than one table?

A) Select
B) Merge
C) Project
D) Join
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
29
Based on the tables below, which command creates a new table named CustSales that combines the Customer and SalesPerson tables based on SalesPersonNum??Customer (CustomerNum, CustomerName, Street, City, State, PostalCode, SalesPersonNum)?SalesPerson (SalesPersonNum, LastName, FirstName)

A) PROJECT Customer SalesPerson WHERE Customer.SalesPersonNum=SalesPerson.SalesPersonNum MAKING CustSales
B) UNION Customer SalesPerson WHERE Customer.SalesPersonNum=SalesPerson.SalesPersonNum MAKING CustSales
C) SELECT Customer SalesPerson JOIN Customer.SalesPersonNum=SalesPerson.SalesPersonNum GIVING CustSales
D) JOIN Customer SalesPerson WHERE Customer.SalesPersonNum=SalesPerson.SalesPersonNum GIVING CustSales
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
30
Multiple entries in tables are often called ____________________.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
31
When some of the entries in a structure contain repeating groups and thus are not single-valued, the structure is called a(n) ____________________.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
32
Which of the following is true if two tables have the same number of columns and their corresponding columns represent the same type of data?

A) They are union compatible.
B) They are intersection compatible.
C) They are difference compatible.
D) They are product compatible.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
33
In relational algebra, what command causes only certain columns to be included in the new table?

A) SELECT
B) DELETE
C) PROGRAM
D) PROJECT
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
34
Which operator is used to concatenate every row in the first table with every row in the second table?

A) union
B) difference
C) product
D) intersection
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
35
What type of query changes data?

A) addition
B) update
C) update
D) select
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
36
A ______________ primary key is composed of more than one column so that the row is unique.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
37
Based on the table below, which command lists all information from the table concerning the customer with CustomerNum 260? Customer (CustomerNum, CustomerName, Street, City, State, PostalCode)

A) SELECT Customer 260 RESULTS Answer
B) SELECT Customer WHERE CustomerNum=260 GIVING Answer
C) SELECT Customer GIVING Answer WHERE CustomerNum='260'
D) SELECT Customer WHERE CustomerNum='260' RESULTS Answer
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
38
If you are sorting records by more than one field, which field is the more important field?

A) primary sort key
B) secondary sort key
C) maximum sort key
D) minor sort key
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
39
What type of query creates a new table using the query results?

A) new-table
B) make-table
C) create-table
D) merge-table
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
40
What type of functions are Count, Sum, Avg, Max, and Min?

A) accumulation
B) allowed
C) primary
D) aggregate
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
41
Discuss the difference between the major sort key and the minor sort key.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
42
A(n) ______________ query makes a specified change to all records satisfying the criteria in the query.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
43
List the six properties that define a relation in a two-dimensional table.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
44
What is the difference between an AND criterion and an OR criterion?
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
45
List at least six of the aggregate functions available in Access.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
46
To list the records in a query's results in a particular order, you need to ____________________ the records.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
47
When both criteria must be true for the compound criterion to be true, the _______________ operator is being used.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
48
Explain what relational algebra is and how it is used.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
49
A query ___________________ is a DBMS component that analyzes queries and attempts to determine the most efficient way to execute a given query.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
50
A ____________________ query in Access allows you to enter criterion when you run the query, as opposed to placing it in the design grid.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 50 flashcards in this deck.