Deck 4: The Relational : Advanced Topics

Full screen (f)
exit full mode
Question
A stored procedure is placed on a client computer.​
Use Space or
up arrow
down arrow
to flip the card.
Question
Indexes can increase the efficiency with which data is retrieved from the database.​
Question
Access supports stored procedures.​
Question
A view is a physical table in the DBMS.
Question
One advantage of a view is that different users can view the same data in different ways.​
Question
Legal-values integrity is the property that states that no record can exist in the database with a value in the field other than one of the legal values.​
Question
The command DEL INDEX CustList; would remove the index named CustList.​
Question
To create a view in Access,you simply create and then save a query.​
Question
One advantage of using views is that they provide data dependence.​
Question
A row-and-column subset ____ consists of a subset of the rows and columns in some individual table.​

A) view​
B) ​trigger
C) ​index
D) ​catalog
Question
Referential integrity is specified using the FOREIGN KEY clause in the SELECT command.​
Question
In Access,a key symbol appears in the row selector of the field that is the ____ key.​

A) ​index
B) ​catalog
C) ​Foreign
D) ​Primary
Question
Information about tables in the database is kept in the system catalog.​
Question
The following command will enable Jones to retrieve data from the Customer table,but not to take any other action: GRANT SELECT ON Customer Jones ;​
Question
The ____ command will create an application program's or individual user's picture of the database.​

A) ​CREATE INDEX
B) ​SELECT INDEX
C) ​SELECT VIEW
D) ​CREATE VIEW
Question
The ____ statement will take away user privileges to the database.​

A) ​SELECT
B) ​INDEX
C) ​DEL
D) ​REVOKE
Question
To create an index named RepBal with the keys RepNum and Balance and with the balances listed in descending order,the command is ____.​

A) ​CREATE INDEX RepBal ON Customer (RepNum, Balance) ;
B) ​CREATE INDEX RepBal Customer (RepNum DESC) ;
C) ​CREATE INDEX ON Customer (RepNum, Balance ASC) ;
D) ​CREATE INDEX RepBal ON Customer (RepNum, Balance DESC) ;
Question
An individual can use a view to create reports,charts,and other objects that show database data.​
Question
Views cannot be used to examine table data.​
Question
When you create an index whose key has a single field,you have created what is called a single-column index.​
Question
The field or combination of fields on which an index is built is called the ____________________ key.​
Question
Essentially,setting the value in a given field to ____ is similar to not entering a value in it at all.​

A) ​N/A
B) ​nil
C) ​null
D) ​0
Question
Within relational model systems on both mainframes and personal computers,the main mechanism for increasing the efficiency with which data is retrieved from the database is the ____________________.​
Question
A trigger is stored and compiled on the ____.​

A) ​client
B) ​Web
C) ​index
D) ​server
Question
In SQL,you use the CHECK clause to enforce ____ integrity.​

A) ​referential
B) ​legal-values
C) ​entity
D) ​catalog
Question
​To create the primary key clause for the OrderLine table on the OrderNum and ItemNum fields,the correct statement is ____.

A) ​PRIMARY KEY (OrderLine, OrderNum, ItemNum)
B) ​KEY (OrderNum, ItemNum)
C) ​PRIMARY KEY (OrderNum, ItemNum)
D) ​PRIMARY (OrderNum, ItemNum)
Question
A(n)____ is a computer that is connected to a network and has access through the server to the database.​

A) ​client
B) ​view
C) ​index
D) ​trigger
Question
____________________ is the prevention of unauthorized access to the database.​
Question
A(n)____ is an action that occurs automatically in response to an associated database operation such as an INSERT,UPDATE,or DELETE command.​

A) ​stored procedure
B) ​trigger
C) ​view
D) ​index
Question
If you anticipate running a particular query often,you can improve overall performance by saving the query in a special file called a(n)____.​

A) ​index
B) ​stored procedure
C) ​trigger
D) ​view
Question
A(n)____________________ index is an index with more than one key field.​
Question
​Within an organization,the ____________________ determines the types of access various users can have to the database.
Question
In a client/server system,users access the database through ____.​

A) ​triggers
B) ​documenters
C) ​servers
D) ​clients
Question
​To create the primary key clause for the Customer table on the CustomerNum field,the correct statement is ____.

A) ​PRIMARY KEY (CustomerNum)
B) ​PRIMARY KEY (Customer, CustomerNum)
C) ​KEY (CustomerNum)
D) ​PRIMARY (CustomerNum)
Question
The statement,____,removes the table Smaller from a DBMS.​

A) ​DELETE TABLE Smaller ;
B) ​DROP TABLE Smaller ;
C) ​REMOVE TABLE Smaller ;
D) ​RID TABLE Smaller ;
Question
​In a client/server system,the database resides on a computer called the ____.

A) ​index
B) ​documenter
C) ​server
D) ​client
Question
Which of the following statement fragments will only allow a CreditLimit of $5,000,$7,500,or $15,000?​

A) ​(CreditLimit IN (5000, 7500, 15000))
B) ​CHECK ((5000, 7500, 15000))
C) ​CHECK (CreditLimit LIKE (5000, 7500, 15000))
D) ​CHECK (CreditLimit IN (5000, 7500, 15000))
Question
To insert a new field in a table,the ____ keyword should be used with the ALTER TABLE command.​

A) ​INSERT
B) ​ADD
C) ​INCLUDE
D) ​ALTER
Question
The SQL command for deleting the Storehouse field from the Item table is ____.​

A) ​ALTER TABLE Item DELETE Storehouse ;
B) ​ALTER TABLE Item DROP COLUMN Storehouse ;
C) ​ALTER Item DELETE Storehouse ;
D) ​ALTER TABLE DELETE Storehouse ;
Question
The CHECK clause can be included in the ____ command.​

A) SELECT TABLE​
B) ​ALTER TABLE
C) ​DROP TABLE
D) ​DELETE TABLE
Question
Access has a tool called the ____________________,which allows you to easily print detailed documentation concerning any table,query,report,form,or other object in the database.​
Question
Discuss what you can do if you need to change a table's structure in ways that are beyond the capabilities of your DBMS.​
Question
The type of field for which you should never allow nulls is the ____________________.​
Question
In a system catalog,the ____________________ table contains information about the tables known to SQL.​
Question
What are the advantages of having views only contain the fields required by a given user?​
Question
In Access,you can restrict the legal values accepted by a field by entering an appropriate ____________________ that data entered in the field must follow.​
Question
​Discuss what are validation rules and validation text.
Question
Explain what is meant by a null value.Is a null value the same as a value of zero?​
Question
​What is the difference between entity integrity and referential integrity?
Question
In Access,a(n)____________________ enables you to add logic to table events such as adding,changing,or deleting data​
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 4: The Relational : Advanced Topics
1
A stored procedure is placed on a client computer.​
False
2
Indexes can increase the efficiency with which data is retrieved from the database.​
True
3
Access supports stored procedures.​
False
4
A view is a physical table in the DBMS.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
5
One advantage of a view is that different users can view the same data in different ways.​
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
6
Legal-values integrity is the property that states that no record can exist in the database with a value in the field other than one of the legal values.​
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
7
The command DEL INDEX CustList; would remove the index named CustList.​
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
8
To create a view in Access,you simply create and then save a query.​
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
9
One advantage of using views is that they provide data dependence.​
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
10
A row-and-column subset ____ consists of a subset of the rows and columns in some individual table.​

A) view​
B) ​trigger
C) ​index
D) ​catalog
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
11
Referential integrity is specified using the FOREIGN KEY clause in the SELECT command.​
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
12
In Access,a key symbol appears in the row selector of the field that is the ____ key.​

A) ​index
B) ​catalog
C) ​Foreign
D) ​Primary
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
13
Information about tables in the database is kept in the system catalog.​
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
14
The following command will enable Jones to retrieve data from the Customer table,but not to take any other action: GRANT SELECT ON Customer Jones ;​
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
15
The ____ command will create an application program's or individual user's picture of the database.​

A) ​CREATE INDEX
B) ​SELECT INDEX
C) ​SELECT VIEW
D) ​CREATE VIEW
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
16
The ____ statement will take away user privileges to the database.​

A) ​SELECT
B) ​INDEX
C) ​DEL
D) ​REVOKE
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
17
To create an index named RepBal with the keys RepNum and Balance and with the balances listed in descending order,the command is ____.​

A) ​CREATE INDEX RepBal ON Customer (RepNum, Balance) ;
B) ​CREATE INDEX RepBal Customer (RepNum DESC) ;
C) ​CREATE INDEX ON Customer (RepNum, Balance ASC) ;
D) ​CREATE INDEX RepBal ON Customer (RepNum, Balance DESC) ;
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
18
An individual can use a view to create reports,charts,and other objects that show database data.​
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
19
Views cannot be used to examine table data.​
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
20
When you create an index whose key has a single field,you have created what is called a single-column index.​
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
21
The field or combination of fields on which an index is built is called the ____________________ key.​
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
22
Essentially,setting the value in a given field to ____ is similar to not entering a value in it at all.​

A) ​N/A
B) ​nil
C) ​null
D) ​0
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
23
Within relational model systems on both mainframes and personal computers,the main mechanism for increasing the efficiency with which data is retrieved from the database is the ____________________.​
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
24
A trigger is stored and compiled on the ____.​

A) ​client
B) ​Web
C) ​index
D) ​server
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
25
In SQL,you use the CHECK clause to enforce ____ integrity.​

A) ​referential
B) ​legal-values
C) ​entity
D) ​catalog
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
26
​To create the primary key clause for the OrderLine table on the OrderNum and ItemNum fields,the correct statement is ____.

A) ​PRIMARY KEY (OrderLine, OrderNum, ItemNum)
B) ​KEY (OrderNum, ItemNum)
C) ​PRIMARY KEY (OrderNum, ItemNum)
D) ​PRIMARY (OrderNum, ItemNum)
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
27
A(n)____ is a computer that is connected to a network and has access through the server to the database.​

A) ​client
B) ​view
C) ​index
D) ​trigger
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
28
____________________ is the prevention of unauthorized access to the database.​
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
29
A(n)____ is an action that occurs automatically in response to an associated database operation such as an INSERT,UPDATE,or DELETE command.​

A) ​stored procedure
B) ​trigger
C) ​view
D) ​index
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
30
If you anticipate running a particular query often,you can improve overall performance by saving the query in a special file called a(n)____.​

A) ​index
B) ​stored procedure
C) ​trigger
D) ​view
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
31
A(n)____________________ index is an index with more than one key field.​
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
32
​Within an organization,the ____________________ determines the types of access various users can have to the database.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
33
In a client/server system,users access the database through ____.​

A) ​triggers
B) ​documenters
C) ​servers
D) ​clients
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
34
​To create the primary key clause for the Customer table on the CustomerNum field,the correct statement is ____.

A) ​PRIMARY KEY (CustomerNum)
B) ​PRIMARY KEY (Customer, CustomerNum)
C) ​KEY (CustomerNum)
D) ​PRIMARY (CustomerNum)
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
35
The statement,____,removes the table Smaller from a DBMS.​

A) ​DELETE TABLE Smaller ;
B) ​DROP TABLE Smaller ;
C) ​REMOVE TABLE Smaller ;
D) ​RID TABLE Smaller ;
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
36
​In a client/server system,the database resides on a computer called the ____.

A) ​index
B) ​documenter
C) ​server
D) ​client
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
37
Which of the following statement fragments will only allow a CreditLimit of $5,000,$7,500,or $15,000?​

A) ​(CreditLimit IN (5000, 7500, 15000))
B) ​CHECK ((5000, 7500, 15000))
C) ​CHECK (CreditLimit LIKE (5000, 7500, 15000))
D) ​CHECK (CreditLimit IN (5000, 7500, 15000))
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
38
To insert a new field in a table,the ____ keyword should be used with the ALTER TABLE command.​

A) ​INSERT
B) ​ADD
C) ​INCLUDE
D) ​ALTER
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
39
The SQL command for deleting the Storehouse field from the Item table is ____.​

A) ​ALTER TABLE Item DELETE Storehouse ;
B) ​ALTER TABLE Item DROP COLUMN Storehouse ;
C) ​ALTER Item DELETE Storehouse ;
D) ​ALTER TABLE DELETE Storehouse ;
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
40
The CHECK clause can be included in the ____ command.​

A) SELECT TABLE​
B) ​ALTER TABLE
C) ​DROP TABLE
D) ​DELETE TABLE
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
41
Access has a tool called the ____________________,which allows you to easily print detailed documentation concerning any table,query,report,form,or other object in the database.​
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
42
Discuss what you can do if you need to change a table's structure in ways that are beyond the capabilities of your DBMS.​
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
43
The type of field for which you should never allow nulls is the ____________________.​
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
44
In a system catalog,the ____________________ table contains information about the tables known to SQL.​
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
45
What are the advantages of having views only contain the fields required by a given user?​
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
46
In Access,you can restrict the legal values accepted by a field by entering an appropriate ____________________ that data entered in the field must follow.​
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
47
​Discuss what are validation rules and validation text.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
48
Explain what is meant by a null value.Is a null value the same as a value of zero?​
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
49
​What is the difference between entity integrity and referential integrity?
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
50
In Access,a(n)____________________ enables you to add logic to table events such as adding,changing,or deleting data​
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.