Views Flashcards

1
Q

What is a View?

A

A virtual table that does not physically exist

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

What is the syntax for creating a view?

A

CREATE VIEW view_name AS
SELECT columns
FROM tables
[WHERE conditions];

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

What happens when you update the data in a view?

A

The records in the underlying tables are updated

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

Does the Oracle View exist if the table is dropped from the database?

A

Yes, however youll get an error if you try to query the view when the table is dropped

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

What is the type of trigger that can only be attached to views?

A

Instead of Triggers

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

What is an Instead of Trigger

A

A trigger attached to views that is run instead of the DML statement that caused the trigger to fire

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