module 8 part #1 Flashcards

1
Q

a piece of SQL code that is invoked when an event occurs. such as an insert, update, or delete statement

A

trigger

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

What type of integrity is enforced when a primary key is declared?

A

entity integrity

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

What is a stored procedure, and why is it particularly useful? Give an example.

A

A stored procedure is kind of like a function in code. It can be saved and used over and over again.

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

adds data to the table

A

INSERT

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

applies to data that is ALREADY in the table.

A

UPDATE

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

can be used to make changes to an existing table, such as adding, dropping, or modifying a column

A

ALTER command

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

used to validate data when an attribute value is entered.

A

CHECK constraint

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