Deck 12: James River Jewelry Project Questions

Full screen (f)
exit full mode
Question
SQL views can be used to layer built-in SQL functions.
Use Space or
up arrow
down arrow
to flip the card.
Question
An SQL virtual table is called a view.
Question
SQL triggers use the SQL keywords BEFORE,INSTEAD OF,and AFTER.
Question
The SQL statement DROP VIEW ViewName is used to delete a view from a database.
Question
SQL triggers can be used with SQL operations INSERT,UPDATE,and DELETE.
Question
SQL views can be used to hide columns.
Question
SQL views can be used to hide rows.
Question
The SQL statement ALTER EXISTING VIEW ViewName AS is used to modify a view.
Question
The Oracle DBMS supports the SQL BEFORE trigger.
Question
SQL views can be used to display the results of computed columns.
Question
SQL views contain their own data.
Question
SQL triggers can be used when the DBMS receives an INSERT request.
Question
SQL views are constructed from SELECT statements.
Question
A stored program that is attached to a table or view is called a stored procedure.
Question
SQL statements used to construct views cannot contain the WHERE clause.
Question
The SQL command CREATE VIEW is used to create view structures.
Question
SQL views can be used to hide complicated SQL syntax.
Question
When an SQL SELECT statement is used to retrieve data from a view instance,the maximum number of columns that can be specified in the SELECT is the same as the number of columns in the table underlying the view.
Question
The SQL keyword ORDER BY can be used with SELECT statements that are retrieving data from view instances to sort the results of the SELECT.
Question
The SQL command SELECT is used to retrieve data from view instances.
Question
An SQL virtual table is called a(n):

A) CHECK constraint.
B) view.
C) embedded SQL statement.
D) trigger.
E) stored procedure.
Question
The SQL Server DBMS supports the SQL BEFORE trigger.
Question
Stored procedures have the advantage of greater security,decreased network traffic,SQL optimized by the DBMS compiler,and code sharing.
Question
When an SQL SELECT statement is used to retrieve data from a view instance,the maximum number of columns that can be specified in the SELECT is the same as the number of columns:

A) in the table underlying the view.
B) in the VIEW specification.
C) in the ORDER BY clause.
D) in the HAVING clause.
E) that have aliases.
Question
The SQL statement used to modify a view is:

A) ALTER EXISTING VIEW ViewName AS.
B) ALTER VIEW ViewName AS.
C) DROP EXISTING VIEW ViewName.
D) DROP VIEW ViewName.
E) MODIFY VIEW ViewName AS.
Question
Based on the tables below,which of the following SQL commands would create an SQL view named CustomerSalesRep that could be used to display CustNo,CustName,RepName? GENERAL SALES DATABASE:
SALESREP
<strong>Based on the tables below,which of the following SQL commands would create an SQL view named CustomerSalesRep that could be used to display CustNo,CustName,RepName? GENERAL SALES DATABASE: SALESREP   CUSTOMER  </strong> A) SELECT CustNo, CustName, RepName FROM SALESREP, CUSTOMER; B) SELECT CustNo, CustName, RepName FROM SALESREP, CUSTOMER WHERE CustNo=*; C) SELECT CustNo, CustName, RepName FROM SALESREP, CUSTOMER WHERE SALEREP, SalesRepNo = CUSTOMER, SalesRepNo; D) CREATE VIEW CustomerSalesRep AS SELECT CustNo, CustName, RepName FROM SALESREP, CUSTOMER WHERE CustNo=*; E) CREATE VIEW CustomerSalesRep AS SELECT CustNo, CustName, RepName FROM SALESREP, CUSTOMER WHERE SALEREP, SalesRepNo = CUSTOMER, SalesRepNo; <div style=padding-top: 35px>
CUSTOMER
<strong>Based on the tables below,which of the following SQL commands would create an SQL view named CustomerSalesRep that could be used to display CustNo,CustName,RepName? GENERAL SALES DATABASE: SALESREP   CUSTOMER  </strong> A) SELECT CustNo, CustName, RepName FROM SALESREP, CUSTOMER; B) SELECT CustNo, CustName, RepName FROM SALESREP, CUSTOMER WHERE CustNo=*; C) SELECT CustNo, CustName, RepName FROM SALESREP, CUSTOMER WHERE SALEREP, SalesRepNo = CUSTOMER, SalesRepNo; D) CREATE VIEW CustomerSalesRep AS SELECT CustNo, CustName, RepName FROM SALESREP, CUSTOMER WHERE CustNo=*; E) CREATE VIEW CustomerSalesRep AS SELECT CustNo, CustName, RepName FROM SALESREP, CUSTOMER WHERE SALEREP, SalesRepNo = CUSTOMER, SalesRepNo; <div style=padding-top: 35px>

A) SELECT CustNo, CustName, RepName FROM SALESREP, CUSTOMER;
B) SELECT CustNo, CustName, RepName FROM SALESREP, CUSTOMER
WHERE CustNo=*;
C) SELECT CustNo, CustName, RepName FROM SALESREP, CUSTOMER
WHERE SALEREP, SalesRepNo = CUSTOMER, SalesRepNo;
D) CREATE VIEW CustomerSalesRep AS SELECT CustNo, CustName, RepName
FROM SALESREP, CUSTOMER
WHERE CustNo=*;
E) CREATE VIEW CustomerSalesRep AS SELECT CustNo, CustName, RepName
FROM SALESREP, CUSTOMER
WHERE SALEREP, SalesRepNo = CUSTOMER, SalesRepNo;
Question
The SQL statement used to delete a view from a database is:

A) ALTER EXISTING VIEW ViewName AS.
B) ALTER VIEW ViewName AS.
C) DELETE VIEW ViewName.
D) DROP EXISTING VIEW ViewName.
E) DROP VIEW ViewName.
Question
A stored program that is stored within the database and compiled when used is called a trigger.
Question
Since an SQL view is essentially a stored query,Microsoft Access queries can be used to implement SQL view equivalents.
Question
SQL views are constructed from:

A) CREATE statements.
B) INSERT statements.
C) UPDATE statements.
D) SELECT statements.
E) VIEW statements.
Question
SQL view instances are retrieved using the:

A) SQL CREATE statement.
B) SQL DELETE statement.
C) SQL INSERT statement.
D) SQL SELECT statement.
E) SQL UPDATE statement.
Question
SQL views are used:

A) to hide columns or rows.
B) to display the results of computations.
C) to hide complicated SQL syntax.
D) to layer built-in functions.
E) All of the above
Question
Because SQL stored procedures allow and encourage code sharing among developers,stored procedures give database application developers the advantages of less work,standardized processing,and specialization among developers.
Question
SQL triggers can be used when the DBMS receives an UPDATE request.
Question
Unlike application code,stored procedures are never distributed to the client computers.
Question
Microsoft Access supports standard SQL view statements.
Question
SQL triggers are used for providing default values,validity checking,updating views,and performing referential integrity actions.
Question
Microsoft Access queries cannot use previously stored view equivalent Access queries.
Question
Although it cannot be used in creating an SQL VIEW,the SQL SELECT statements retrieving view instances can include:

A) SQL keyword ORDER BY.
B) SQL keyword LIKE.
C) SQL keyword BETWEEN.
D) SQL keyword NULL.
E) SQL keyword NOT NULL.
Question
SQL statements used to construct views cannot contain:

A) the SELECT clause.
B) the FROM clause.
C) the WHERE clause.
D) the ORDER BY clause.
E) the LIKE keyword.
Question
The SQL statement ________ is used to delete a view from a database.
Question
Which of the following is not an SQL trigger?

A) BEFORE UPDATE
B) INSTEAD OF UPDATE
C) BEFORE INSERT
D) INSTEAD OF CONSTRAINT
E) AFTER DELETE
Question
A stored program that is attached to a table or view is called ________.

A) a CHECK constraint
B) a view
C) embedded SQL
D) a trigger
E) a stored procedure
Question
SQL views are constructed from SQL ________ statements.
Question
SQL views can be used to display the results of ________.
Question
Which of the following is an SQL trigger that Microsoft SQL Server supports?

A) BEFORE
B) INSTEAD OF
C) AFTER
D) B and C only
E) A, B, and C
Question
SQL triggers can be used when the DBMS receives a(n)________ request.

A) INSERT
B) UPDATE
C) DELETE
D) A and B
E) A, B, and C
Question
A stored program that is attached to the database is called ________.

A) a CHECK constraint
B) a view
C) embedded SQL
D) a trigger
E) a stored procedure
Question
Stored procedures have the advantage of ________.

A) greater security
B) decreased network traffic
C) SQL optimized by the DBMS compiler
D) code sharing
E) All of the above
Question
The SQL command ________ is used to create a virtual table.
Question
An SQL virtual table is called a(n)________.
Question
SQL statements used to construct views cannot contain the ________ clause.
Question
The SQL keyword ________ can be used with SELECT statements retrieving view instances to sort the results of the SELECT.
Question
SQL views can be used to hide table ________.
Question
Because SQL stored procedures allow and encourage code sharing among developers,stored procedures give database application developers the advantages of ________.

A) less work
B) standardized processing
C) specialization among developers
D) A and B
E) A, B, and C
Question
Microsoft Access queries:

A) can use previously stored view equivalent Access queries.
B) cannot use previously stored view equivalent Access queries for any purpose.
C) cannot use previously stored view equivalent Access queries to hide rows.
D) cannot use previously stored view equivalent Access queries to hide columns.
E) cannot use previously stored view equivalent Access queries to hide complicated SQL syntax.
Question
Microsoft Access:

A) supports standard SQL view statements.
B) only supports SQL view statements as QBE constructions.
C) can store a view equivalent Access query.
D) can store a view equivalent Access query but does not provide a means to use it.
E) cannot store any database object that is equivalent to an SQL view.
Question
Which of the following is an SQL trigger that Oracle supports?

A) BEFORE
B) INSTEAD OF
C) AFTER
D) B and C only
E) A, B, and C
Question
The SQL statement ________ is used to modify a view.
Question
SQL triggers are used for ________.

A) validity checking
B) providing default values
C) updating views
D) A and B
E) A, B, and C
Question
What are SQL triggers and how are they used?
Question
Use the database below to answer the following question.
GENERAL SALES DATABASE:
SALESREP
Use the database below to answer the following question. GENERAL SALES DATABASE: SALESREP   CUSTOMER   What is an SQL view,and what is it used for? Include an example based on the CUSTOMER table of the General Sales Database.<div style=padding-top: 35px>
CUSTOMER
Use the database below to answer the following question. GENERAL SALES DATABASE: SALESREP   CUSTOMER   What is an SQL view,and what is it used for? Include an example based on the CUSTOMER table of the General Sales Database.<div style=padding-top: 35px>
What is an SQL view,and what is it used for? Include an example based on the CUSTOMER table of the General Sales Database.
Question
Use the database below to answer the following question.
GENERAL SALES DATABASE:
SALESREP
Use the database below to answer the following question. GENERAL SALES DATABASE: SALESREP   CUSTOMER   Using the CUSTOMER.Balance column as the column providing the data,create a view to display the results of a computed column.Specifically,assume that all customers are required to maintain a minimum balance of 100,and use the view to display customer name and a number named BalanceOverMinimum that calculates (Balance - 100)for all customers in the GENERAL SALES DATABASE.<div style=padding-top: 35px>
CUSTOMER
Use the database below to answer the following question. GENERAL SALES DATABASE: SALESREP   CUSTOMER   Using the CUSTOMER.Balance column as the column providing the data,create a view to display the results of a computed column.Specifically,assume that all customers are required to maintain a minimum balance of 100,and use the view to display customer name and a number named BalanceOverMinimum that calculates (Balance - 100)for all customers in the GENERAL SALES DATABASE.<div style=padding-top: 35px>
Using the CUSTOMER.Balance column as the column providing the data,create a view to display the results of a computed column.Specifically,assume that all customers are required to maintain a minimum balance of 100,and use the view to display customer name and a number named BalanceOverMinimum that calculates (Balance - 100)for all customers in the GENERAL SALES DATABASE.
Question
How are SQL views handled in Microsoft Access?
Question
Since an SQL view is essentially a stored query,Microsoft Access ________ can be used to implement SQL view equivalents.
Question
Use the database below to answer the following question.
GENERAL SALES DATABASE:
SALESREP
Use the database below to answer the following question. GENERAL SALES DATABASE: SALESREP   CUSTOMER   Write the SQL statement to create a view named CustomerSalesRepView that displays the customer name as CustomerName and the associated sales rep name SaleRepresentativeName from the GENERAL SALES DATABASE.<div style=padding-top: 35px>
CUSTOMER
Use the database below to answer the following question. GENERAL SALES DATABASE: SALESREP   CUSTOMER   Write the SQL statement to create a view named CustomerSalesRepView that displays the customer name as CustomerName and the associated sales rep name SaleRepresentativeName from the GENERAL SALES DATABASE.<div style=padding-top: 35px>
Write the SQL statement to create a view named CustomerSalesRepView that displays the customer name as CustomerName and the associated sales rep name SaleRepresentativeName from the GENERAL SALES DATABASE.
Question
Use the database below to answer the following question.
GENERAL SALES DATABASE:
SALESREP
Use the database below to answer the following question. GENERAL SALES DATABASE: SALESREP   CUSTOMER   Given that a view named CustomerSalesRepView that displays the customer name as CustomerName and the associated sales rep name as SalesRepresentativeName has been created for the GENERAL SALES DATABASE,write the SQL code to use the view to display the customer name and associated sales rep name sorted by customer name.<div style=padding-top: 35px>
CUSTOMER
Use the database below to answer the following question. GENERAL SALES DATABASE: SALESREP   CUSTOMER   Given that a view named CustomerSalesRepView that displays the customer name as CustomerName and the associated sales rep name as SalesRepresentativeName has been created for the GENERAL SALES DATABASE,write the SQL code to use the view to display the customer name and associated sales rep name sorted by customer name.<div style=padding-top: 35px>
Given that a view named CustomerSalesRepView that displays the customer name as CustomerName and the associated sales rep name as SalesRepresentativeName has been created for the GENERAL SALES DATABASE,write the SQL code to use the view to display the customer name and associated sales rep name sorted by customer name.
Question
SQL views can be used to layer ________.
Question
What are SQL stored procedures and how are they used?
Question
Microsoft Access ________ can use previously stored view equivalent Access queries the same way an SQL SELECT statement uses SQL views.
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/70
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 12: James River Jewelry Project Questions
1
SQL views can be used to layer built-in SQL functions.
True
2
An SQL virtual table is called a view.
True
3
SQL triggers use the SQL keywords BEFORE,INSTEAD OF,and AFTER.
True
4
The SQL statement DROP VIEW ViewName is used to delete a view from a database.
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
5
SQL triggers can be used with SQL operations INSERT,UPDATE,and DELETE.
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
6
SQL views can be used to hide columns.
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
7
SQL views can be used to hide rows.
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
8
The SQL statement ALTER EXISTING VIEW ViewName AS is used to modify a view.
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
9
The Oracle DBMS supports the SQL BEFORE trigger.
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
10
SQL views can be used to display the results of computed columns.
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
11
SQL views contain their own data.
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
12
SQL triggers can be used when the DBMS receives an INSERT request.
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
13
SQL views are constructed from SELECT statements.
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
14
A stored program that is attached to a table or view is called a stored procedure.
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
15
SQL statements used to construct views cannot contain the WHERE clause.
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
16
The SQL command CREATE VIEW is used to create view structures.
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
17
SQL views can be used to hide complicated SQL syntax.
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
18
When an SQL SELECT statement is used to retrieve data from a view instance,the maximum number of columns that can be specified in the SELECT is the same as the number of columns in the table underlying the view.
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
19
The SQL keyword ORDER BY can be used with SELECT statements that are retrieving data from view instances to sort the results of the SELECT.
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
20
The SQL command SELECT is used to retrieve data from view instances.
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
21
An SQL virtual table is called a(n):

A) CHECK constraint.
B) view.
C) embedded SQL statement.
D) trigger.
E) stored procedure.
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
22
The SQL Server DBMS supports the SQL BEFORE trigger.
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
23
Stored procedures have the advantage of greater security,decreased network traffic,SQL optimized by the DBMS compiler,and code sharing.
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
24
When an SQL SELECT statement is used to retrieve data from a view instance,the maximum number of columns that can be specified in the SELECT is the same as the number of columns:

A) in the table underlying the view.
B) in the VIEW specification.
C) in the ORDER BY clause.
D) in the HAVING clause.
E) that have aliases.
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
25
The SQL statement used to modify a view is:

A) ALTER EXISTING VIEW ViewName AS.
B) ALTER VIEW ViewName AS.
C) DROP EXISTING VIEW ViewName.
D) DROP VIEW ViewName.
E) MODIFY VIEW ViewName AS.
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
26
Based on the tables below,which of the following SQL commands would create an SQL view named CustomerSalesRep that could be used to display CustNo,CustName,RepName? GENERAL SALES DATABASE:
SALESREP
<strong>Based on the tables below,which of the following SQL commands would create an SQL view named CustomerSalesRep that could be used to display CustNo,CustName,RepName? GENERAL SALES DATABASE: SALESREP   CUSTOMER  </strong> A) SELECT CustNo, CustName, RepName FROM SALESREP, CUSTOMER; B) SELECT CustNo, CustName, RepName FROM SALESREP, CUSTOMER WHERE CustNo=*; C) SELECT CustNo, CustName, RepName FROM SALESREP, CUSTOMER WHERE SALEREP, SalesRepNo = CUSTOMER, SalesRepNo; D) CREATE VIEW CustomerSalesRep AS SELECT CustNo, CustName, RepName FROM SALESREP, CUSTOMER WHERE CustNo=*; E) CREATE VIEW CustomerSalesRep AS SELECT CustNo, CustName, RepName FROM SALESREP, CUSTOMER WHERE SALEREP, SalesRepNo = CUSTOMER, SalesRepNo;
CUSTOMER
<strong>Based on the tables below,which of the following SQL commands would create an SQL view named CustomerSalesRep that could be used to display CustNo,CustName,RepName? GENERAL SALES DATABASE: SALESREP   CUSTOMER  </strong> A) SELECT CustNo, CustName, RepName FROM SALESREP, CUSTOMER; B) SELECT CustNo, CustName, RepName FROM SALESREP, CUSTOMER WHERE CustNo=*; C) SELECT CustNo, CustName, RepName FROM SALESREP, CUSTOMER WHERE SALEREP, SalesRepNo = CUSTOMER, SalesRepNo; D) CREATE VIEW CustomerSalesRep AS SELECT CustNo, CustName, RepName FROM SALESREP, CUSTOMER WHERE CustNo=*; E) CREATE VIEW CustomerSalesRep AS SELECT CustNo, CustName, RepName FROM SALESREP, CUSTOMER WHERE SALEREP, SalesRepNo = CUSTOMER, SalesRepNo;

A) SELECT CustNo, CustName, RepName FROM SALESREP, CUSTOMER;
B) SELECT CustNo, CustName, RepName FROM SALESREP, CUSTOMER
WHERE CustNo=*;
C) SELECT CustNo, CustName, RepName FROM SALESREP, CUSTOMER
WHERE SALEREP, SalesRepNo = CUSTOMER, SalesRepNo;
D) CREATE VIEW CustomerSalesRep AS SELECT CustNo, CustName, RepName
FROM SALESREP, CUSTOMER
WHERE CustNo=*;
E) CREATE VIEW CustomerSalesRep AS SELECT CustNo, CustName, RepName
FROM SALESREP, CUSTOMER
WHERE SALEREP, SalesRepNo = CUSTOMER, SalesRepNo;
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
27
The SQL statement used to delete a view from a database is:

A) ALTER EXISTING VIEW ViewName AS.
B) ALTER VIEW ViewName AS.
C) DELETE VIEW ViewName.
D) DROP EXISTING VIEW ViewName.
E) DROP VIEW ViewName.
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
28
A stored program that is stored within the database and compiled when used is called a trigger.
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
29
Since an SQL view is essentially a stored query,Microsoft Access queries can be used to implement SQL view equivalents.
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
30
SQL views are constructed from:

A) CREATE statements.
B) INSERT statements.
C) UPDATE statements.
D) SELECT statements.
E) VIEW statements.
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
31
SQL view instances are retrieved using the:

A) SQL CREATE statement.
B) SQL DELETE statement.
C) SQL INSERT statement.
D) SQL SELECT statement.
E) SQL UPDATE statement.
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
32
SQL views are used:

A) to hide columns or rows.
B) to display the results of computations.
C) to hide complicated SQL syntax.
D) to layer built-in functions.
E) All of the above
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
33
Because SQL stored procedures allow and encourage code sharing among developers,stored procedures give database application developers the advantages of less work,standardized processing,and specialization among developers.
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
34
SQL triggers can be used when the DBMS receives an UPDATE request.
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
35
Unlike application code,stored procedures are never distributed to the client computers.
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
36
Microsoft Access supports standard SQL view statements.
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
37
SQL triggers are used for providing default values,validity checking,updating views,and performing referential integrity actions.
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
38
Microsoft Access queries cannot use previously stored view equivalent Access queries.
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
39
Although it cannot be used in creating an SQL VIEW,the SQL SELECT statements retrieving view instances can include:

A) SQL keyword ORDER BY.
B) SQL keyword LIKE.
C) SQL keyword BETWEEN.
D) SQL keyword NULL.
E) SQL keyword NOT NULL.
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
40
SQL statements used to construct views cannot contain:

A) the SELECT clause.
B) the FROM clause.
C) the WHERE clause.
D) the ORDER BY clause.
E) the LIKE keyword.
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
41
The SQL statement ________ is used to delete a view from a database.
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
42
Which of the following is not an SQL trigger?

A) BEFORE UPDATE
B) INSTEAD OF UPDATE
C) BEFORE INSERT
D) INSTEAD OF CONSTRAINT
E) AFTER DELETE
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
43
A stored program that is attached to a table or view is called ________.

A) a CHECK constraint
B) a view
C) embedded SQL
D) a trigger
E) a stored procedure
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
44
SQL views are constructed from SQL ________ statements.
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
45
SQL views can be used to display the results of ________.
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
46
Which of the following is an SQL trigger that Microsoft SQL Server supports?

A) BEFORE
B) INSTEAD OF
C) AFTER
D) B and C only
E) A, B, and C
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
47
SQL triggers can be used when the DBMS receives a(n)________ request.

A) INSERT
B) UPDATE
C) DELETE
D) A and B
E) A, B, and C
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
48
A stored program that is attached to the database is called ________.

A) a CHECK constraint
B) a view
C) embedded SQL
D) a trigger
E) a stored procedure
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
49
Stored procedures have the advantage of ________.

A) greater security
B) decreased network traffic
C) SQL optimized by the DBMS compiler
D) code sharing
E) All of the above
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
50
The SQL command ________ is used to create a virtual table.
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
51
An SQL virtual table is called a(n)________.
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
52
SQL statements used to construct views cannot contain the ________ clause.
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
53
The SQL keyword ________ can be used with SELECT statements retrieving view instances to sort the results of the SELECT.
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
54
SQL views can be used to hide table ________.
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
55
Because SQL stored procedures allow and encourage code sharing among developers,stored procedures give database application developers the advantages of ________.

A) less work
B) standardized processing
C) specialization among developers
D) A and B
E) A, B, and C
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
56
Microsoft Access queries:

A) can use previously stored view equivalent Access queries.
B) cannot use previously stored view equivalent Access queries for any purpose.
C) cannot use previously stored view equivalent Access queries to hide rows.
D) cannot use previously stored view equivalent Access queries to hide columns.
E) cannot use previously stored view equivalent Access queries to hide complicated SQL syntax.
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
57
Microsoft Access:

A) supports standard SQL view statements.
B) only supports SQL view statements as QBE constructions.
C) can store a view equivalent Access query.
D) can store a view equivalent Access query but does not provide a means to use it.
E) cannot store any database object that is equivalent to an SQL view.
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
58
Which of the following is an SQL trigger that Oracle supports?

A) BEFORE
B) INSTEAD OF
C) AFTER
D) B and C only
E) A, B, and C
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
59
The SQL statement ________ is used to modify a view.
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
60
SQL triggers are used for ________.

A) validity checking
B) providing default values
C) updating views
D) A and B
E) A, B, and C
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
61
What are SQL triggers and how are they used?
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
62
Use the database below to answer the following question.
GENERAL SALES DATABASE:
SALESREP
Use the database below to answer the following question. GENERAL SALES DATABASE: SALESREP   CUSTOMER   What is an SQL view,and what is it used for? Include an example based on the CUSTOMER table of the General Sales Database.
CUSTOMER
Use the database below to answer the following question. GENERAL SALES DATABASE: SALESREP   CUSTOMER   What is an SQL view,and what is it used for? Include an example based on the CUSTOMER table of the General Sales Database.
What is an SQL view,and what is it used for? Include an example based on the CUSTOMER table of the General Sales Database.
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
63
Use the database below to answer the following question.
GENERAL SALES DATABASE:
SALESREP
Use the database below to answer the following question. GENERAL SALES DATABASE: SALESREP   CUSTOMER   Using the CUSTOMER.Balance column as the column providing the data,create a view to display the results of a computed column.Specifically,assume that all customers are required to maintain a minimum balance of 100,and use the view to display customer name and a number named BalanceOverMinimum that calculates (Balance - 100)for all customers in the GENERAL SALES DATABASE.
CUSTOMER
Use the database below to answer the following question. GENERAL SALES DATABASE: SALESREP   CUSTOMER   Using the CUSTOMER.Balance column as the column providing the data,create a view to display the results of a computed column.Specifically,assume that all customers are required to maintain a minimum balance of 100,and use the view to display customer name and a number named BalanceOverMinimum that calculates (Balance - 100)for all customers in the GENERAL SALES DATABASE.
Using the CUSTOMER.Balance column as the column providing the data,create a view to display the results of a computed column.Specifically,assume that all customers are required to maintain a minimum balance of 100,and use the view to display customer name and a number named BalanceOverMinimum that calculates (Balance - 100)for all customers in the GENERAL SALES DATABASE.
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
64
How are SQL views handled in Microsoft Access?
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
65
Since an SQL view is essentially a stored query,Microsoft Access ________ can be used to implement SQL view equivalents.
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
66
Use the database below to answer the following question.
GENERAL SALES DATABASE:
SALESREP
Use the database below to answer the following question. GENERAL SALES DATABASE: SALESREP   CUSTOMER   Write the SQL statement to create a view named CustomerSalesRepView that displays the customer name as CustomerName and the associated sales rep name SaleRepresentativeName from the GENERAL SALES DATABASE.
CUSTOMER
Use the database below to answer the following question. GENERAL SALES DATABASE: SALESREP   CUSTOMER   Write the SQL statement to create a view named CustomerSalesRepView that displays the customer name as CustomerName and the associated sales rep name SaleRepresentativeName from the GENERAL SALES DATABASE.
Write the SQL statement to create a view named CustomerSalesRepView that displays the customer name as CustomerName and the associated sales rep name SaleRepresentativeName from the GENERAL SALES DATABASE.
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
67
Use the database below to answer the following question.
GENERAL SALES DATABASE:
SALESREP
Use the database below to answer the following question. GENERAL SALES DATABASE: SALESREP   CUSTOMER   Given that a view named CustomerSalesRepView that displays the customer name as CustomerName and the associated sales rep name as SalesRepresentativeName has been created for the GENERAL SALES DATABASE,write the SQL code to use the view to display the customer name and associated sales rep name sorted by customer name.
CUSTOMER
Use the database below to answer the following question. GENERAL SALES DATABASE: SALESREP   CUSTOMER   Given that a view named CustomerSalesRepView that displays the customer name as CustomerName and the associated sales rep name as SalesRepresentativeName has been created for the GENERAL SALES DATABASE,write the SQL code to use the view to display the customer name and associated sales rep name sorted by customer name.
Given that a view named CustomerSalesRepView that displays the customer name as CustomerName and the associated sales rep name as SalesRepresentativeName has been created for the GENERAL SALES DATABASE,write the SQL code to use the view to display the customer name and associated sales rep name sorted by customer name.
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
68
SQL views can be used to layer ________.
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
69
What are SQL stored procedures and how are they used?
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
70
Microsoft Access ________ can use previously stored view equivalent Access queries the same way an SQL SELECT statement uses SQL views.
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 70 flashcards in this deck.