Deck 12: Sql Views SQL/PSM and Importing Data

ملء الشاشة (f)
exit full mode
سؤال
SQL views can be used to display the results of computed columns.
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
The SQL command CREATE VIEW is used to create view structures.
سؤال
The Oracle DBMS supports the SQL BEFORE trigger.
سؤال
The SQL statement ALTER EXISTING VIEW ViewName AS is used to modify a view.
سؤال
SQL views can be used to hide rows.
سؤال
SQL views are constructed from SELECT statements.
سؤال
SQL views contain their own data.
سؤال
The SQL statement DROP VIEW ViewName is used to delete a view from a database.
سؤال
SQL statements used to construct views cannot contain the WHERE clause.
سؤال
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.
سؤال
SQL views can be used to hide columns.
سؤال
The SQL command SELECT is used to retrieve data from view instances.
سؤال
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.
سؤال
A stored program that is attached to a table or view is called a stored procedure.
سؤال
SQL triggers can be used with SQL operations INSERT,UPDATE,and DELETE.
سؤال
An SQL virtual table is called a view.
سؤال
SQL views can be used to layer built-in SQL functions.
سؤال
SQL triggers use the SQL keywords BEFORE,INSTEAD OF,and AFTER.
سؤال
SQL triggers can be used when the DBMS receives an INSERT request.
سؤال
SQL views can be used to hide complicated SQL syntax.
سؤال
SQL views are constructed from:

A)CREATE statements.
B)INSERT statements.
C)UPDATE statements.
D)SELECT statements.
E)VIEW statements.
سؤال
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
سؤال
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.
سؤال
A stored program that is stored within the database and compiled when used is called a trigger.
سؤال
Microsoft Access queries cannot use previously stored view equivalent Access queries.
سؤال
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.
سؤال
An SQL virtual table is called a(n):

A)CHECK constraint.
B)view.
C)embedded SQL statement.
D)trigger.
E)stored procedure.
سؤال
The SQL Server DBMS supports the SQL BEFORE trigger.
سؤال
Microsoft Access supports standard SQL view statements.
سؤال
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.
سؤال
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.
سؤال
SQL triggers can be used when the DBMS receives an UPDATE request.
سؤال
Since an SQL view is essentially a stored query,Microsoft Access queries can be used to implement SQL view equivalents.
سؤال
SQL triggers are used for providing default values,validity checking,updating views,and performing referential integrity actions.
سؤال
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.
سؤال
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;
سؤال
Unlike application code,stored procedures are never distributed to the client computers.
سؤال
Stored procedures have the advantage of greater security,decreased network traffic,SQL optimized by the DBMS compiler,and code sharing.
سؤال
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.
سؤال
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.
سؤال
SQL views can be used to display the results of ________.
سؤال
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
سؤال
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
سؤال
The SQL command ________ is used to create a virtual table.
سؤال
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
سؤال
The SQL statement ________ is used to delete a view from a database.
سؤال
SQL views are constructed from SQL ________ statements.
سؤال
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
سؤال
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
سؤال
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
سؤال
The SQL statement ________ is used to modify a view.
سؤال
SQL statements used to construct views cannot contain the ________ clause.
سؤال
The SQL keyword ________ can be used with SELECT statements retrieving view instances to sort the results of the SELECT.
سؤال
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
سؤال
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.
سؤال
SQL views can be used to hide table ________.
سؤال
An SQL virtual table is called a(n)________.
سؤال
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.
سؤال
SQL triggers are used for ________.

A)validity checking
B)providing default values
C)updating views
D)A and B
E)A,B,and C
سؤال
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
سؤال
SQL views can be used to layer ________.
سؤال
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.
سؤال
What are SQL stored procedures and how are they used?
سؤال
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.
سؤال
Microsoft Access ________ can use previously stored view equivalent Access queries the same way an SQL SELECT statement uses SQL views.
سؤال
Since an SQL view is essentially a stored query,Microsoft Access ________ can be used to implement SQL view equivalents.
سؤال
What are SQL triggers and how are they used?
سؤال
How are SQL views handled in Microsoft Access?
سؤال
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.
سؤال
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.
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/70
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 12: Sql Views SQL/PSM and Importing Data
1
SQL views can be used to display the results of computed columns.
True
2
The SQL command CREATE VIEW is used to create view structures.
True
3
The Oracle DBMS supports the SQL BEFORE trigger.
True
4
The SQL statement ALTER EXISTING VIEW ViewName AS is used to modify a view.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 70 في هذه المجموعة.
فتح الحزمة
k this deck
5
SQL views can be used to hide rows.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 70 في هذه المجموعة.
فتح الحزمة
k this deck
6
SQL views are constructed from SELECT statements.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 70 في هذه المجموعة.
فتح الحزمة
k this deck
7
SQL views contain their own data.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 70 في هذه المجموعة.
فتح الحزمة
k this deck
8
The SQL statement DROP VIEW ViewName is used to delete a view from a database.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 70 في هذه المجموعة.
فتح الحزمة
k this deck
9
SQL statements used to construct views cannot contain the WHERE clause.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 70 في هذه المجموعة.
فتح الحزمة
k this deck
10
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 70 في هذه المجموعة.
فتح الحزمة
k this deck
11
SQL views can be used to hide columns.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 70 في هذه المجموعة.
فتح الحزمة
k this deck
12
The SQL command SELECT is used to retrieve data from view instances.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 70 في هذه المجموعة.
فتح الحزمة
k this deck
13
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 70 في هذه المجموعة.
فتح الحزمة
k this deck
14
A stored program that is attached to a table or view is called a stored procedure.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 70 في هذه المجموعة.
فتح الحزمة
k this deck
15
SQL triggers can be used with SQL operations INSERT,UPDATE,and DELETE.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 70 في هذه المجموعة.
فتح الحزمة
k this deck
16
An SQL virtual table is called a view.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 70 في هذه المجموعة.
فتح الحزمة
k this deck
17
SQL views can be used to layer built-in SQL functions.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 70 في هذه المجموعة.
فتح الحزمة
k this deck
18
SQL triggers use the SQL keywords BEFORE,INSTEAD OF,and AFTER.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 70 في هذه المجموعة.
فتح الحزمة
k this deck
19
SQL triggers can be used when the DBMS receives an INSERT request.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 70 في هذه المجموعة.
فتح الحزمة
k this deck
20
SQL views can be used to hide complicated SQL syntax.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 70 في هذه المجموعة.
فتح الحزمة
k this deck
21
SQL views are constructed from:

A)CREATE statements.
B)INSERT statements.
C)UPDATE statements.
D)SELECT statements.
E)VIEW statements.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 70 في هذه المجموعة.
فتح الحزمة
k this deck
22
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 70 في هذه المجموعة.
فتح الحزمة
k this deck
23
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 70 في هذه المجموعة.
فتح الحزمة
k this deck
24
A stored program that is stored within the database and compiled when used is called a trigger.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 70 في هذه المجموعة.
فتح الحزمة
k this deck
25
Microsoft Access queries cannot use previously stored view equivalent Access queries.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 70 في هذه المجموعة.
فتح الحزمة
k this deck
26
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 70 في هذه المجموعة.
فتح الحزمة
k this deck
27
An SQL virtual table is called a(n):

A)CHECK constraint.
B)view.
C)embedded SQL statement.
D)trigger.
E)stored procedure.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 70 في هذه المجموعة.
فتح الحزمة
k this deck
28
The SQL Server DBMS supports the SQL BEFORE trigger.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 70 في هذه المجموعة.
فتح الحزمة
k this deck
29
Microsoft Access supports standard SQL view statements.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 70 في هذه المجموعة.
فتح الحزمة
k this deck
30
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 70 في هذه المجموعة.
فتح الحزمة
k this deck
31
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 70 في هذه المجموعة.
فتح الحزمة
k this deck
32
SQL triggers can be used when the DBMS receives an UPDATE request.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 70 في هذه المجموعة.
فتح الحزمة
k this deck
33
Since an SQL view is essentially a stored query,Microsoft Access queries can be used to implement SQL view equivalents.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 70 في هذه المجموعة.
فتح الحزمة
k this deck
34
SQL triggers are used for providing default values,validity checking,updating views,and performing referential integrity actions.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 70 في هذه المجموعة.
فتح الحزمة
k this deck
35
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 70 في هذه المجموعة.
فتح الحزمة
k this deck
36
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;
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 70 في هذه المجموعة.
فتح الحزمة
k this deck
37
Unlike application code,stored procedures are never distributed to the client computers.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 70 في هذه المجموعة.
فتح الحزمة
k this deck
38
Stored procedures have the advantage of greater security,decreased network traffic,SQL optimized by the DBMS compiler,and code sharing.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 70 في هذه المجموعة.
فتح الحزمة
k this deck
39
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 70 في هذه المجموعة.
فتح الحزمة
k this deck
40
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 70 في هذه المجموعة.
فتح الحزمة
k this deck
41
SQL views can be used to display the results of ________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 70 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 70 في هذه المجموعة.
فتح الحزمة
k this deck
43
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 70 في هذه المجموعة.
فتح الحزمة
k this deck
44
The SQL command ________ is used to create a virtual table.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 70 في هذه المجموعة.
فتح الحزمة
k this deck
45
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 70 في هذه المجموعة.
فتح الحزمة
k this deck
46
The SQL statement ________ is used to delete a view from a database.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 70 في هذه المجموعة.
فتح الحزمة
k this deck
47
SQL views are constructed from SQL ________ statements.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 70 في هذه المجموعة.
فتح الحزمة
k this deck
48
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 70 في هذه المجموعة.
فتح الحزمة
k this deck
49
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 70 في هذه المجموعة.
فتح الحزمة
k this deck
50
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 70 في هذه المجموعة.
فتح الحزمة
k this deck
51
The SQL statement ________ is used to modify a view.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 70 في هذه المجموعة.
فتح الحزمة
k this deck
52
SQL statements used to construct views cannot contain the ________ clause.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 70 في هذه المجموعة.
فتح الحزمة
k this deck
53
The SQL keyword ________ can be used with SELECT statements retrieving view instances to sort the results of the SELECT.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 70 في هذه المجموعة.
فتح الحزمة
k this deck
54
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 70 في هذه المجموعة.
فتح الحزمة
k this deck
55
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 70 في هذه المجموعة.
فتح الحزمة
k this deck
56
SQL views can be used to hide table ________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 70 في هذه المجموعة.
فتح الحزمة
k this deck
57
An SQL virtual table is called a(n)________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 70 في هذه المجموعة.
فتح الحزمة
k this deck
58
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 70 في هذه المجموعة.
فتح الحزمة
k this deck
59
SQL triggers are used for ________.

A)validity checking
B)providing default values
C)updating views
D)A and B
E)A,B,and C
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 70 في هذه المجموعة.
فتح الحزمة
k this deck
60
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 70 في هذه المجموعة.
فتح الحزمة
k this deck
61
SQL views can be used to layer ________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 70 في هذه المجموعة.
فتح الحزمة
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   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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 70 في هذه المجموعة.
فتح الحزمة
k this deck
63
What are SQL stored procedures and how are they used?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 70 في هذه المجموعة.
فتح الحزمة
k this deck
64
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 70 في هذه المجموعة.
فتح الحزمة
k this deck
65
Microsoft Access ________ can use previously stored view equivalent Access queries the same way an SQL SELECT statement uses SQL views.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 70 في هذه المجموعة.
فتح الحزمة
k this deck
66
Since an SQL view is essentially a stored query,Microsoft Access ________ can be used to implement SQL view equivalents.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 70 في هذه المجموعة.
فتح الحزمة
k this deck
67
What are SQL triggers and how are they used?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 70 في هذه المجموعة.
فتح الحزمة
k this deck
68
How are SQL views handled in Microsoft Access?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 70 في هذه المجموعة.
فتح الحزمة
k this deck
69
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 70 في هذه المجموعة.
فتح الحزمة
k this deck
70
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 70 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 70 في هذه المجموعة.