Exam Review Flashcards

1
Q

What are business rules?

A
  • Specifications that preserve the integrity of a conceptual or logical data model
  • Stored as part of the database
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the 4 types of business rules?

A
  • entity integrity
  • referential integrity
  • domains
  • triggering operations (last resort)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is entity integrity?

A

Each instance of an entity must have a unique identifier that is not null (primary key)

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

What is referential integrity?

A
  • Rules governing the relationships between entities

- Refer to the foreign keys which link tables

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

What are domains?

A

Associated with constraint thats that restrict the values permitted in a column

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

What is triggering operations?

A
  • Rules that are invoked on the action of data manipulation operations (INSERT, UPDATE, DELETE)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are stored procedures?

A

pieces of executable code stored in the database.

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

What is a cursor?

A

iterates through a select set one entry at a time

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

What are some extra features of stored procedures?

A

Stored Procedures:

  • can be passed values
  • not attached to a specific table
  • must be called by programs, triggers, or manually
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are triggers?

A
  • attached to a specific table
  • can’t pass values
  • run automatically based on an event (insert, update, delete) ** event driven **
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is a ROLLBACK TRANSACTION?

A

cancels an event

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