Database Design for Mere Mortals Ch. 12 Flashcards

1
Q

Why can you refer to a view as a virtual table?

A

Because it draws data from base tables rather than storing data on its own

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

State two reasons why views are valuable.

A

— You can use them to work with data from multiple tables simultaneously
— They reflect the most current information contained in the base tables
— You can customize them to the specific needs of an individual or group of individuals
— You can use them to help enforce data integrity
— You can use them for security or confidentiality purposes

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

Name the types of views you can define as you design the logical structure of the database.

A

— Data
— Aggregate
— Validation

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

What does your RDMBS do each time you access a data view (or any type of view, for that matter)?

A

Your RDBMS will rebuild and repopulate it using the most current data from the view’s base tables

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

What determines the type of modifications you can make to a view’s data?

A

Field specifications and business rules determine the types of modifications you can make to a view’s data

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

What is the only requirement you must fulfill to define a multitable data view?

A

The tables you use to create the view must bear a relationship to each other

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

Why doesn’t a data view contain its own primary key?

A

Because it is not a table; a true table stores data and requires a primary key to serve as a unique identifier for each of its records

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

What is the purpose of an aggregate view?

A

To display information produced by aggregating a particular set of data in a specific manner

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

What are the most common aggregate functions that you can apply to a set of data?

A

Sum, average, minimum, maximum, and count

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

What is a grouping field?

A

A data field within an aggregate view that ‘groups’ multiple instances of a given value into a single instance of the value

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

True or False: You can modify the data in an aggregate view.

A

False

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

What is the difference between a validation table and a validation view?

A

The difference lies in their construction — a validation tables stores its own data, whereas a validation view draws data from its base tables

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

Name two points you would consider when identifying view requirements.

A

— Review your notes with the group
— Review the data entry, report, and presentation samples you gathered during the early stages of the design process
— Examine the tables and the subjects they represent
— Analyze the table relationships
— Study the business rules

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

When should you use calculated fields?

A

When they will provide pertinent and meaningful information or when they will enhance the manner in which the view uses its data

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

How do you define a view that displays only science-fiction books?

A

By applying a filter to the appropriate field within the view

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

Why must you complete a View Specifications sheet for every view in the database?

A

Because it is on this sheet that you will record the characteristics of the view