Deck 7: Database Administration

ملء الشاشة (f)
exit full mode
سؤال
A program's or an individual user's picture of the database is called a(n) _____.

A) transaction
B) view
C) catalog
D) index
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
Views furnish a certain amount of security; if users are accessing the database through a view, they cannot access any data that is not included in the view.
سؤال
To ensure the uniqueness of values in a nonprimary key column, you can create an index using the _____.

A) CREATE UNIQUE INDEX command
B) CREATE NONPRIMARY INDEX command
C) CREATE INDEX command
D) CREATE ONLY INDEX command
سؤال
A database can be readily updated through a view when that view is derived from joining two base tables on a shared _____.

A) row-column
B) foreign key
C) primary key
D) index
سؤال
Which command will allow user Thompson to remove rows from the CUSTOMER table?

A) GRANT DROP ON CUSTOMER TO THOMPSON;
B) GRANT THOMPSON REMOVE ON CUSTOMER;
C) SELECT* CUSTOMER GRANT THOMPSON DELETE;
D) GRANT DELETE ON CUSTOMER TO THOMPSON;
سؤال
You can create and maintain an index on any row in any table.
سؤال
Which of the following commands deletes an index?

A) DELETE INDEX
B) REMOVE INDEX
C) UNINDEX
D) DROP INDEX
سؤال
The system catalog is also called the _____.

A) system database
B) data dictionary
C) master data table
D) transaction database
سؤال
When users create, alter, or drop tables or create or drop indexes, the DBMS updates the system catalog automatically.
سؤال
When you specify a foreign key, the table referenced by the foreign key is the _____.

A) super
B) sibling
C) parent
D) child
سؤال
Which privilege can be granted to allow a user to retrieve data?

A) SELECT
B) UPDATE
C) RETRIEVE
D) READ
سؤال
The CREATE VIEW command includes the words CREATE VIEW, followed by the name of the view, the word ____, and then a query.

A) AC
B) SA
C) AS
D) IN
سؤال
The general form for assigning a foreign key is ADD FOREIGN KEY, the column name(s) of the foreign key, the ____ clause, and then the table name and column that the foreign key must match.

A) WHERE
B) REFERENCES
C) FROM
D) IN
سؤال
When renaming columns for a view, you include the new column names in _____ following the name of the view.

A) single quotes
B) double quotes
C) parentheses
D) square brackets
سؤال
Which privilege should be granted to users who are authorized to change a table's structure?

A) WRITE
B) UPDATE
C) ALTER
D) MODIFY
سؤال
Percy is promoted and is no longer responsible for making updates to several database tables. Which command should Percy's database administrator use to prevent Percy from making future updates?

A) DROP
B) REMOVE
C) REVOKE
D) CANCEL
سؤال
In a business organization, the person or entire group of people charged with managing the database is known as the _____.

A) database analyst
B) developer
C) database administrator
D) programmer
سؤال
The issues involved in updating data within base tables through a view are the same regardless of the type of view.
سؤال
Adding rows to a view is most troublesome for the view user when that view contains _____.

A) statistics calculated from base tables
B) a base table's primary key
C) more than five columns
D) data from more than one base table
سؤال
An index makes certain types of retrieval more efficient.
سؤال
Updating a database using a view can pose problems. Describe some of these problems that occur with views that join two or more base tables. How can a database administrator minimize problems when creating views that join tables?
سؤال
The types of constraints supported in SQL are ____.

A) data types, indexes, and system catalogs
B) foreign keys, qualifiers, and naming conventions
C) user privileges, data types, and legal values
D) primary keys, foreign keys, and legal values
سؤال
Martine's database administrator has set up a view for her so that she can access the information she needs from the database. What will happen when new columns Martine does not need to see are added to the base tables used for Martine's view?

A) The new columns will appear in Martine's view.
B) The data independence provided by the view will be lost.
C) The administrator will have to change the view's defining query.
D) Martine can continue to use her view as usual.
سؤال
What happens once the following command is executed? ALTER TABLE ORDERS
ADD FOREIGN KEY (CLIENT_ID) REFERENCES CLIENT (CLIENT_ID);

A) The DBMS will reject updates to the ORDERS table with CLIENT_ID values missing from the CLIENT table.
B) The DBMS will reject the insertion of rows that have different primary keys but are otherwise identical into the ORDERS table.
C) The DBMS will reject updates to the CLIENT table with CLIENT_ID values missing from the ORDERS table.
D) The DBMS will ensure that only legal values are entered into the CLIENT_ID column in the ORDERS table.
سؤال
Views can contain only the columns required by a given user. What two advantages are conferred by this aspect of views?

A) customization and data independence
B) simplicity and security
C) data independence and portability
D) performance and reliability
سؤال
What happens if Samantha, whose view of the database contains only a portion of the rows and columns of the base table, attempts to add a row to the table through her view?

A) Samantha's INSERT command will automatically be rejected.
B) Samantha could accidentally add a row with a duplicate primary key to the table.
C) If Samantha's INSERT command succeeds, the new row will contain several null values.
D) If all the columns in the base table accept nulls, Samantha's INSERT command will fail.
سؤال
What are the disadvantages of using an index?
سؤال
Explain what happens when you create a query that involves a view.
سؤال
What does this SQL command accomplish? ALTER TABLE PRODUCTS
ADD CHECK (SIZE IN ('S', 'M', 'L', 'XL', 'XXL'));

A) updates all values in the SIZE column
B) adds a parent-child constraint to the PRODUCTS table
C) establishes a foreign key for the PRODUCTS table
D) establishes legal values for the SIZE column
سؤال
The purpose of creating databases indexes is to _____.

A) maintain the integrity of the data stored in tables
B) reduce the database's storage (memory) requirements
C) avoid searching through every row in a table with every query
D) grant and/or revoke privileges for certain actions to users
سؤال
Which MySQL command displays all tables associated with the database ELPATRON?

A) SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE (TABLE_SCHEMA = 'ELPATRON');
B) SELECT * FROM INFORMATION_SCHEMA.VIEWS WHERE (TABLE_SCHEMA = 'ELPATRON');
C) SELECT * FROM USER_OBJECTS 'ELPATRON';
D) SHOW TABLES WHERE TABLE_SCHEMA = ELPATRON;
سؤال
What are the benefits of using views?
سؤال
Which statement about views is correct?

A) A view can join two or more tables and/or involve statistics.
B) A view is a temporary table the DBMS creates in response to a query.
C) A query of a view is executed in the form in which the user enters it.
D) The column names in a view must match those in the base table(s).
سؤال
An index _____.

A) involves complexities that are not managed directly by most DBMSs
B) can be essential to the retrieval performance of very large database
C) must be created at the same time as the database
D) provides significant benefits for databases of all sizes
سؤال
In Oracle, which table contains information about the columns within tables?

A) SYSTABLES
B) DBA_TAB_COLUMNS
C) COLUMNS
D) USER_OBJECTS
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/35
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 7: Database Administration
1
A program's or an individual user's picture of the database is called a(n) _____.

A) transaction
B) view
C) catalog
D) index
B
2
Views furnish a certain amount of security; if users are accessing the database through a view, they cannot access any data that is not included in the view.
True
3
To ensure the uniqueness of values in a nonprimary key column, you can create an index using the _____.

A) CREATE UNIQUE INDEX command
B) CREATE NONPRIMARY INDEX command
C) CREATE INDEX command
D) CREATE ONLY INDEX command
A
4
A database can be readily updated through a view when that view is derived from joining two base tables on a shared _____.

A) row-column
B) foreign key
C) primary key
D) index
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 35 في هذه المجموعة.
فتح الحزمة
k this deck
5
Which command will allow user Thompson to remove rows from the CUSTOMER table?

A) GRANT DROP ON CUSTOMER TO THOMPSON;
B) GRANT THOMPSON REMOVE ON CUSTOMER;
C) SELECT* CUSTOMER GRANT THOMPSON DELETE;
D) GRANT DELETE ON CUSTOMER TO THOMPSON;
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 35 في هذه المجموعة.
فتح الحزمة
k this deck
6
You can create and maintain an index on any row in any table.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 35 في هذه المجموعة.
فتح الحزمة
k this deck
7
Which of the following commands deletes an index?

A) DELETE INDEX
B) REMOVE INDEX
C) UNINDEX
D) DROP INDEX
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 35 في هذه المجموعة.
فتح الحزمة
k this deck
8
The system catalog is also called the _____.

A) system database
B) data dictionary
C) master data table
D) transaction database
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 35 في هذه المجموعة.
فتح الحزمة
k this deck
9
When users create, alter, or drop tables or create or drop indexes, the DBMS updates the system catalog automatically.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 35 في هذه المجموعة.
فتح الحزمة
k this deck
10
When you specify a foreign key, the table referenced by the foreign key is the _____.

A) super
B) sibling
C) parent
D) child
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 35 في هذه المجموعة.
فتح الحزمة
k this deck
11
Which privilege can be granted to allow a user to retrieve data?

A) SELECT
B) UPDATE
C) RETRIEVE
D) READ
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 35 في هذه المجموعة.
فتح الحزمة
k this deck
12
The CREATE VIEW command includes the words CREATE VIEW, followed by the name of the view, the word ____, and then a query.

A) AC
B) SA
C) AS
D) IN
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 35 في هذه المجموعة.
فتح الحزمة
k this deck
13
The general form for assigning a foreign key is ADD FOREIGN KEY, the column name(s) of the foreign key, the ____ clause, and then the table name and column that the foreign key must match.

A) WHERE
B) REFERENCES
C) FROM
D) IN
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 35 في هذه المجموعة.
فتح الحزمة
k this deck
14
When renaming columns for a view, you include the new column names in _____ following the name of the view.

A) single quotes
B) double quotes
C) parentheses
D) square brackets
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 35 في هذه المجموعة.
فتح الحزمة
k this deck
15
Which privilege should be granted to users who are authorized to change a table's structure?

A) WRITE
B) UPDATE
C) ALTER
D) MODIFY
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 35 في هذه المجموعة.
فتح الحزمة
k this deck
16
Percy is promoted and is no longer responsible for making updates to several database tables. Which command should Percy's database administrator use to prevent Percy from making future updates?

A) DROP
B) REMOVE
C) REVOKE
D) CANCEL
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 35 في هذه المجموعة.
فتح الحزمة
k this deck
17
In a business organization, the person or entire group of people charged with managing the database is known as the _____.

A) database analyst
B) developer
C) database administrator
D) programmer
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 35 في هذه المجموعة.
فتح الحزمة
k this deck
18
The issues involved in updating data within base tables through a view are the same regardless of the type of view.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 35 في هذه المجموعة.
فتح الحزمة
k this deck
19
Adding rows to a view is most troublesome for the view user when that view contains _____.

A) statistics calculated from base tables
B) a base table's primary key
C) more than five columns
D) data from more than one base table
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 35 في هذه المجموعة.
فتح الحزمة
k this deck
20
An index makes certain types of retrieval more efficient.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 35 في هذه المجموعة.
فتح الحزمة
k this deck
21
Updating a database using a view can pose problems. Describe some of these problems that occur with views that join two or more base tables. How can a database administrator minimize problems when creating views that join tables?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 35 في هذه المجموعة.
فتح الحزمة
k this deck
22
The types of constraints supported in SQL are ____.

A) data types, indexes, and system catalogs
B) foreign keys, qualifiers, and naming conventions
C) user privileges, data types, and legal values
D) primary keys, foreign keys, and legal values
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 35 في هذه المجموعة.
فتح الحزمة
k this deck
23
Martine's database administrator has set up a view for her so that she can access the information she needs from the database. What will happen when new columns Martine does not need to see are added to the base tables used for Martine's view?

A) The new columns will appear in Martine's view.
B) The data independence provided by the view will be lost.
C) The administrator will have to change the view's defining query.
D) Martine can continue to use her view as usual.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 35 في هذه المجموعة.
فتح الحزمة
k this deck
24
What happens once the following command is executed? ALTER TABLE ORDERS
ADD FOREIGN KEY (CLIENT_ID) REFERENCES CLIENT (CLIENT_ID);

A) The DBMS will reject updates to the ORDERS table with CLIENT_ID values missing from the CLIENT table.
B) The DBMS will reject the insertion of rows that have different primary keys but are otherwise identical into the ORDERS table.
C) The DBMS will reject updates to the CLIENT table with CLIENT_ID values missing from the ORDERS table.
D) The DBMS will ensure that only legal values are entered into the CLIENT_ID column in the ORDERS table.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 35 في هذه المجموعة.
فتح الحزمة
k this deck
25
Views can contain only the columns required by a given user. What two advantages are conferred by this aspect of views?

A) customization and data independence
B) simplicity and security
C) data independence and portability
D) performance and reliability
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 35 في هذه المجموعة.
فتح الحزمة
k this deck
26
What happens if Samantha, whose view of the database contains only a portion of the rows and columns of the base table, attempts to add a row to the table through her view?

A) Samantha's INSERT command will automatically be rejected.
B) Samantha could accidentally add a row with a duplicate primary key to the table.
C) If Samantha's INSERT command succeeds, the new row will contain several null values.
D) If all the columns in the base table accept nulls, Samantha's INSERT command will fail.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 35 في هذه المجموعة.
فتح الحزمة
k this deck
27
What are the disadvantages of using an index?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 35 في هذه المجموعة.
فتح الحزمة
k this deck
28
Explain what happens when you create a query that involves a view.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 35 في هذه المجموعة.
فتح الحزمة
k this deck
29
What does this SQL command accomplish? ALTER TABLE PRODUCTS
ADD CHECK (SIZE IN ('S', 'M', 'L', 'XL', 'XXL'));

A) updates all values in the SIZE column
B) adds a parent-child constraint to the PRODUCTS table
C) establishes a foreign key for the PRODUCTS table
D) establishes legal values for the SIZE column
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 35 في هذه المجموعة.
فتح الحزمة
k this deck
30
The purpose of creating databases indexes is to _____.

A) maintain the integrity of the data stored in tables
B) reduce the database's storage (memory) requirements
C) avoid searching through every row in a table with every query
D) grant and/or revoke privileges for certain actions to users
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 35 في هذه المجموعة.
فتح الحزمة
k this deck
31
Which MySQL command displays all tables associated with the database ELPATRON?

A) SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE (TABLE_SCHEMA = 'ELPATRON');
B) SELECT * FROM INFORMATION_SCHEMA.VIEWS WHERE (TABLE_SCHEMA = 'ELPATRON');
C) SELECT * FROM USER_OBJECTS 'ELPATRON';
D) SHOW TABLES WHERE TABLE_SCHEMA = ELPATRON;
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 35 في هذه المجموعة.
فتح الحزمة
k this deck
32
What are the benefits of using views?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 35 في هذه المجموعة.
فتح الحزمة
k this deck
33
Which statement about views is correct?

A) A view can join two or more tables and/or involve statistics.
B) A view is a temporary table the DBMS creates in response to a query.
C) A query of a view is executed in the form in which the user enters it.
D) The column names in a view must match those in the base table(s).
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 35 في هذه المجموعة.
فتح الحزمة
k this deck
34
An index _____.

A) involves complexities that are not managed directly by most DBMSs
B) can be essential to the retrieval performance of very large database
C) must be created at the same time as the database
D) provides significant benefits for databases of all sizes
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 35 في هذه المجموعة.
فتح الحزمة
k this deck
35
In Oracle, which table contains information about the columns within tables?

A) SYSTABLES
B) DBA_TAB_COLUMNS
C) COLUMNS
D) USER_OBJECTS
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 35 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 35 في هذه المجموعة.