Views/Security/Transactions Flashcards

1
Q

Advantages Views

A

Data independence
Security
Easier querying
Convenience/Customization

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Disadvantages of views

A

Updatable views are not always supported and are restrictive
Performance - Views add increased overhead: During query parsing and especially if they are materialized

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

SQL privileges

A

SELECT - The user can retrieve data from table
INSERT - The user cam insert data into the table
UPDATE - The user can modify data in the table
DELETE - The user can delete rows from table
REFERENCES - The ability to reference columns of a named table in integrity constraints
USAGE - The ability to use domains, character sets and translations

INSERT and UPDATE can be restricted to certain columns

When a user creates a table they become the owner and have full privileges on the table

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

GRANT

A

GRANT command gives privileges on database objects to users

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

REVOKE

A

Command used to remove privileges on database objects from users

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Atomicity

A

Either all operations of the transaction are properly reflected in the database or none are

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Consistency

A

Execution of a transaction in isolation preserves the consistency of the database

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Isolation

A

Although multiple transactions may execute concurrently, each transaction must be unaware of other concurrently executing transaction

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Durability

A

After a transaction successfully completes, the change it has made to the database persist, even if there are system failures

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly