Understanding Database Triggers

Understanding Database Triggers

University

10 Qs

quiz-placeholder

Similar activities

Quiz pertemuan 5 PBO

Quiz pertemuan 5 PBO

University

5 Qs

Hệ quản trị cơ sở dữ liệu - Kiểm tra thường xuyên 3

Hệ quản trị cơ sở dữ liệu - Kiểm tra thường xuyên 3

University

10 Qs

SQL Basics Quiz

SQL Basics Quiz

University

10 Qs

Introduction to Databases Quiz

Introduction to Databases Quiz

10th Grade - University

14 Qs

SBD QUIZ#13

SBD QUIZ#13

University

10 Qs

Основы работы с СУБД

Основы работы с СУБД

University

10 Qs

DBMS Group 8 Review Quiz

DBMS Group 8 Review Quiz

University

15 Qs

BD | Cuestionario S15

BD | Cuestionario S15

University

10 Qs

Understanding Database Triggers

Understanding Database Triggers

Assessment

Quiz

Information Technology (IT)

University

Medium

Created by

sushi kimbaps

Used 1+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What is a database trigger?

A) A table in a database

B) A procedural SQL code executed automatically upon a data manipulation event

C) A type of stored procedure executed manually

D) A query that retrieves data

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which event can activate a database trigger?

A) Running a SELECT statement

B) Deleting a database

C) Inserting, updating, or deleting a row

D) Creating a new database

3.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What command is used to create a trigger in SQL Server?

A) CREATE PROCEDURE

B) CREATE FUNCTION

C) CREATE TRIGGER

D) CREATE EVENT

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the function of a trigger in enforcing referential integrity?

A) It prevents unauthorized schema changes

B) It ensures that related records in multiple tables remain consistent

C) It automatically backs up data

D) It optimizes query performance

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a type of trigger?

A) BEFORE trigger

B) AFTER trigger

C) INSTEAD OF trigger

D) DURING trigger

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the main advantage of using triggers?

A) They can be executed manually

B) They provide a way to enforce business rules automatically

C) They are faster than stored procedures

D) They can only be used for data retrieval

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the main difference between BEFORE and AFTER triggers?

A) BEFORE triggers execute before a transaction, while AFTER triggers execute after the transaction

B) BEFORE triggers delete records, while AFTER triggers update records

C) BEFORE triggers can only be used in MySQL, while AFTER triggers are for SQL Server

D) There is no difference between the two

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?