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

Full screen (f)
exit full mode
Question
A column whose value uniquely identifies a given row in the table is the secondary key.​
Use Space or
up arrow
down arrow
to flip the card.
Question
The ____ key of a table is the column or collection of columns that uniquely identifies a given row in that table.​

A) ​primary
B) ​secondary
C) ​foreign
D) ​minor
Question
The concept of grouping means that statistics will be calculated for individual records.​
Question
QBE is a visual approach to writing queries.​
Question
The attributes of an entity become the fields or columns in a table.​
Question
An unnormalized relation is a table that has more than one row.​
Question
​Based on the statement below,which of the following is the primary key? Rep (RepNum,LastName,FirstName,Street,City,State,PostalCode Commission,Rate)

A) ​RepNum
B) ​LastName
C) ​FirstName
D) ​State
Question
​The comparison operators are also known as relational operators.
Question
In an AND criterion,the overall criterion is true if either of the individual criteria is true.​
Question
When duplicate column names exist in a database and you need to indicate the column to which you are referring,____.​

A) ​do not use these two tables together
B) ​do not use the column names in the same statement
C) ​write both the table name and the column name, separated by a period
D) ​write the table name only
Question
A relational database is a collection of relations.
Question
In a relation,the order of the columns is important.
Question
Access automatically adds double quotation marks around values in the design grid that are formatted as Short Text fields when you run the query or move the insertion point to another cell in the design grid.​
Question
Each column in a table should have a unique name,and entries in each column should all "match" this column name.​
Question
In a relation,the order of rows is important.​
Question
​A query is a question represented in a way that the DBMS can recognize and process.
Question
Rows are also called ____.​

A) ​fields
B) ​columns
C) ​tuples
D) ​attributes
Question
A relation is a(n)____.​

A) ​attribute
B) ​column
C) ​field
D) ​table
Question
A relational database handles entities,attributes,and relationships by storing each entity in its own table.​
Question
The comparison operators are +,*,%,and /.​
Question
Which operation will allow you to extract data from more than one table?​

A) ​Select
B) ​Merge
C) ​Project
D) ​Join
Question
If you are sorting records by more than one field,the more important field is called the ____.​

A) ​primary sort key
B) ​secondary sort key
C) ​maximum sort key
D) ​minor sort key
Question
When a structure satisfies all the properties of a relation except for the first item-in other words,some entries contain repeating groups and thus are not single-valued-it is referred to as a(n)____________________.​
Question
The ____ command within relational algebra includes the word OVER followed by a list of the columns to be included.​

A) ​DELETE
B) ​PROJECT
C) ​INTERSECT
D) ​UNION
Question
The compound criteria (conditions)are created by using ____.​

A) ​AND, OR
B) ​AND, NOR
C) ​OR, NOT
D) ​NOT, ONLY
Question
A query that changes data is a(n)____ query.​

A) ​addition
B) ​update
C) ​update
D) ​select
Question
You can restrict the output from a join to include only certain columns by using the ____ command.​

A) ​DELETE
B) ​UNION
C) ​PROJECT
D) ​INTERSECT
Question
The product of two tables is also called the ____ product.​

A) ​Cartesian
B) ​aggregate
C) ​Cathode
D) ​exponential
Question
A(n)____________________ database is a collection of tables.​
Question
Based on the Customer table below,which command lists all information from the table concerning customer 260?​ CustomerNum CustomerName Street City State PostalCode
126 Toys Galore 28 Laketon St. Fulton CA 90085
260 Brookings Direct 452 Columbus Dr. Grove CA 90092

A) ​SELECT Customer 260 GIVING Answer
B) ​SELECT Customer WHERE CustomerNum=260 GIVING Answer
C) ​SELECT Customer WHERE Customernum='260' GIVING Answer
D) ​SELECT Customer WHERE CustomerName='260' GIVING Answer
Question
Two tables are considered to be ____ compatible if they have the same number of columns and their corresponding columns represent the same type of data.​

A) ​union
B) ​intersection
C) ​difference
D) ​product
Question
Count,Sum,Avg,Max,and Min are a few of the built-in statistics or ____ functions that can be used in a query.​

A) ​accumulated
B) ​allowed
C) ​primary
D) ​aggregate
Question
Multiple entries in tables are often called ____________________.​
Question
Columns in a table are often called ____________________.​
Question
The relationships between tables are handled through ____________________ columns.​
Question
The ____ command within relational algebra takes a vertical subset of a table.​

A) ​SELECT
B) ​DELETE
C) ​PROGRAM
D) ​PROJECT
Question
Using the product operator,if table A has 4 rows and table B has 4 rows,the number of rows in the product of these two tables is ____.​

A) ​4
B) ​8
C) ​16
D) ​256
Question
The ____ operation is performed by the SUBTRACT command in relational algebra.​

A) ​union
B) ​difference
C) ​product
D) ​intersection
Question
The ____ 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
A ____ query creates a new table using the query results.​

A) ​new-table
B) ​make-table
C) ​create-table
D) ​merge-table
Question
Explain what relational algebra is and how it is used.​
Question
​Conditions that data must satisfy are called ____________________.
Question
​A(n)____________________ field is a field that is the result of a calculation using one or more existing fields.
Question
The field on which records are sorted is called the ____________________.​
Question
____________________ is a theoretical way of manipulating a relational database.
Question
​Provide a definition for the term relation.
Question
​What is the difference between an AND criterion and an OR criterion? How is each criterion created in QBE?
Question
List at least six of the aggregate functions available in Access.Explain how to use any of these functions in a query.​
Question
To list the records in a query's results in a particular order,you need to ____________________ the records.​
Question
Discuss the difference between the major sort key and the minor sort key.​
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 : Introduction, QBE, and Relational Algebra
1
A column whose value uniquely identifies a given row in the table is the secondary key.​
False
2
The ____ key of a table is the column or collection of columns that uniquely identifies a given row in that table.​

A) ​primary
B) ​secondary
C) ​foreign
D) ​minor
A
3
The concept of grouping means that statistics will be calculated for individual records.​
False
4
QBE is a visual approach to writing queries.​
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
5
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
6
An unnormalized relation is a table that has more than one row.​
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
7
​Based on the statement below,which of the following is the primary key? Rep (RepNum,LastName,FirstName,Street,City,State,PostalCode Commission,Rate)

A) ​RepNum
B) ​LastName
C) ​FirstName
D) ​State
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
8
​The comparison operators are also known as relational operators.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
9
In an AND criterion,the overall criterion is true if either of the individual criteria is true.​
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
10
When duplicate column names exist in a database and you need to indicate the column to which you are referring,____.​

A) ​do not use these two tables together
B) ​do not use the column names in the same statement
C) ​write both the table name and the column name, separated by a period
D) ​write the table name only
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
11
A relational database is a collection of relations.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
12
In a relation,the order of the columns is important.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
13
Access automatically adds double quotation marks around values in the design grid that are formatted as Short Text fields when you run the query or move the insertion point to another cell in the design grid.​
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
14
Each column in a table should have a unique name,and entries in each column should all "match" this column name.​
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
15
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
16
​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
17
Rows are also called ____.​

A) ​fields
B) ​columns
C) ​tuples
D) ​attributes
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
18
A relation is a(n)____.​

A) ​attribute
B) ​column
C) ​field
D) ​table
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
19
A relational database handles entities,attributes,and relationships by storing each entity in its own table.​
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
20
The comparison operators are +,*,%,and /.​
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
21
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
22
If you are sorting records by more than one field,the more important field is called the ____.​

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
23
When a structure satisfies all the properties of a relation except for the first item-in other words,some entries contain repeating groups and thus are not single-valued-it is referred to as a(n)____________________.​
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
24
The ____ command within relational algebra includes the word OVER followed by a list of the columns to be included.​

A) ​DELETE
B) ​PROJECT
C) ​INTERSECT
D) ​UNION
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 ____.​

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 query that changes data is a(n)____ query.​

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
27
You can restrict the output from a join to include only certain columns by using the ____ command.​

A) ​DELETE
B) ​UNION
C) ​PROJECT
D) ​INTERSECT
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
28
The product of two tables is also called the ____ product.​

A) ​Cartesian
B) ​aggregate
C) ​Cathode
D) ​exponential
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
29
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
30
Based on the Customer table below,which command lists all information from the table concerning customer 260?​ CustomerNum CustomerName Street City State PostalCode
126 Toys Galore 28 Laketon St. Fulton CA 90085
260 Brookings Direct 452 Columbus Dr. Grove CA 90092

A) ​SELECT Customer 260 GIVING Answer
B) ​SELECT Customer WHERE CustomerNum=260 GIVING Answer
C) ​SELECT Customer WHERE Customernum='260' GIVING Answer
D) ​SELECT Customer WHERE CustomerName='260' GIVING Answer
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
31
Two tables are considered to be ____ compatible if they have the same number of columns and their corresponding columns represent the same type of data.​

A) ​union
B) ​intersection
C) ​difference
D) ​product
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
32
Count,Sum,Avg,Max,and Min are a few of the built-in statistics or ____ functions that can be used in a query.​

A) ​accumulated
B) ​allowed
C) ​primary
D) ​aggregate
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
33
Multiple entries in tables are often called ____________________.​
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
34
Columns in a table are often called ____________________.​
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
35
The relationships between tables are handled through ____________________ columns.​
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
36
The ____ command within relational algebra takes a vertical subset of a 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
37
Using the product operator,if table A has 4 rows and table B has 4 rows,the number of rows in the product of these two tables is ____.​

A) ​4
B) ​8
C) ​16
D) ​256
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
38
The ____ 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
39
The ____ 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
40
A ____ 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
41
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
42
​Conditions that data must satisfy are called ____________________.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
43
​A(n)____________________ field is a field that is the result of a calculation using one or more existing fields.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
44
The field on which records are sorted is called the ____________________.​
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
45
____________________ is a theoretical way of manipulating a relational database.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
46
​Provide a definition for the term relation.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
47
​What is the difference between an AND criterion and an OR criterion? How is each criterion created in QBE?
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
48
List at least six of the aggregate functions available in Access.Explain how to use any of these functions in a query.​
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
49
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
50
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
locked card icon
Unlock Deck
Unlock for access to all 50 flashcards in this deck.