Unit 6_DBMS Flashcards

1
Q

a procedural SQL code that is automatically invoked by the RDBMS upon the occurrence of a given data manipulation event.

A

Trigger

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

A TRIGGER is created using the __________ command.

A

CREATE TRIGGER

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

It cannot be created on a view, temporary table or system table, but they can reference views or temporary tables

A

Trigger

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

To delete or remove a trigger we use what command

A

DROP TRIGGER trigger_name

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

replaces the existing line ender (;) with the provided symbol. Used for END statement.

A

Delimiter

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

Delimiter is used in what kind of statement

A

End statement

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

is used if we want to execute the trigger before changes are made to the table. Meaning it will be executed regardless of a successful operation.

A

BEFORE

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

is used if we want to execute the trigger before changes are made to the table.

A

AFTER

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

trigger is used for insert operation

A

INSERT

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

trigger is used for update operation

A

UPDATE

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

trigger is used for delete operation

A

DELETE

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

indicates that the trigger will be in effect for all the row changes made inside the table

A

FOR EACH ROW

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

What are the 2 types of triggers

A

Data Manipulation Language (DML) trigger
and
Data Definition Language (DDL) trigger

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

Executes when INSERT, UPDATE, and DELETE commands modify data in a table or view.

A

Data Manipulation Language (DML) trigger

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

Executes in response to a DDL statement that is often used to make database schema changes. Examples include the CREATE, ALTER, and DROP statements.

A

Data Definition Language (DDL) trigger

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

When the trigger is called the queries after the ____ keyword is executed.

A

AS keyword