Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
31 Cards in this Set
- Front
- Back
Whats a view?
|
an individuals picture of the database
|
|
benefits of a view?
|
security,simplification,less involved than full database, each user has his own view, data independence
|
|
Whats a defining query?
|
Select statement that creates the view. The query does not create a table.
|
|
Does the DBMS run the query in this form?
|
No, the query that is actually executed is the merger of this query and the create view query.
|
|
Whats an index?
|
similar to a book index. they speed up data retrieval. record numbers automatically assigned by DBMS
|
|
Whats an index key?
|
a field on which the index is built
|
|
Disadvantage of indexing
|
occupy disk space, dbms must update index when data is updated
|
|
What is db security?
|
prevention of unauthorized access to db
|
|
What statement provides privileges to users?
|
GRANT
|
|
what statement remove privileges?
|
REVOKE
|
|
2 kinds of integrity rules must be followed. What are they?
|
entity integrity, referential integrity
|
|
What is entity integrity?
|
Primary keys cant accept null values
|
|
What is referential integrity?
|
value of Foreign key fields that correspond to table B must match the value of the primary key for the same row in table B or be null
|
|
2 kinds of integrity rules must be followed. What are they?
|
entity integrity, referential integrity
|
|
what is legal-values integrity?
|
Can only enter certain values for a field. (implemented with CHECK statement)
|
|
What is entity integrity?
|
Primary keys cant accept null values
|
|
What are some examples of structure changes in a DB?
|
deleting tables, changing field characteristics, deleting/adding fields, adding,deleting indexes.
|
|
What is referential integrity?
|
value of Foreign key fields that correspond to table B must match the value of the primary key for the same row in table B or be null
|
|
What statement is used to change DB structure?
|
ALTER TABLE
|
|
what is legal-values integrity?
|
Can only enter certain values for a field. (implemented with CHECK statement)
|
|
Whats a system catalog?
|
contains data about the database (metadata) maintained automatically by database
|
|
What are some examples of structure changes in a DB?
|
deleting tables, changing field characteristics, deleting/adding fields, adding,deleting indexes.
|
|
Whats a stored procedure?
|
query that resides on the server andand is run often.
|
|
What statement is used to change DB structure?
|
ALTER TABLE
|
|
Benefits of stored procedure?
|
convenience and performance
|
|
Whats a system catalog?
|
contains data about the database (metadata) maintained automatically by database
|
|
Whats a delimiter?
|
semicolon at the end of a MySQL command
|
|
Whats a stored procedure?
|
query that resides on the server andand is run often.
|
|
Benefits of stored procedure?
|
convenience and performance
|
|
Whats a delimiter?
|
semicolon at the end of a MySQL command
|
|
What is a trigger?
|
action that occurs automatically after an operation (such as INSERT, UPDATE, DELETE)
|