Week 8 Flashcards

(21 cards)

1
Q

What is a database?

A

A structured system that centrally coordinates related files (tables) to store and manage data efficiently.

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

Define logical view vs. physical view of a database.

A

Logical: User-focused view of how data is related (e.g., customer names and invoices).

Physical: Technical details of how data is stored (e.g., on a hard drive).

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

What are the components of a database table?

A

File/Table: Group of related records.

Record/Row: Group of related fields.

Attribute/Column: Specific characteristic (e.g., “Customer Name”).

Field/Cell: Intersection of a row and column.

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

Why use databases over legacy file systems?

A

Integration: Data linked across tables.

Minimized redundancy: No duplicate data (e.g., customer address stored once).

Consistency: Updates propagate automatically.

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

Give an example of data inconsistency in legacy systems.

A

A customer’s address might be “CJ Jackson” in the sales file and “Charles Jackson” in the customer file.

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

What is a primary key of a relational database?

A

A unique identifier for a row in a table (e.g., Sales Invoice #).

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

What is a foreign key a relational database?

A

A field linking two tables (e.g., Customer # in the Sales table references the Customer table).

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

What are the three anomalies in poorly designed databases?

A

Update anomaly: Inconsistent data after partial updates.

Insert anomaly: Cannot add records without redundant data.

Delete anomaly: Loss of critical data when deleting a record.

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

What is normalization?

A

Organizing data into related tables to minimize redundancy and anomalies.

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

What is referential integrity?

A

Foreign keys must match existing primary keys in related tables.

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

What is a query?

A

A request to retrieve specific data (e.g., “Show invoices for customer D. Ainge”).

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

What is the REA model?

A

A framework for accounting databases focusing on:

Resources (e.g., cash, inventory),

Events (e.g., sales, purchases),

Agents (e.g., customers, employees).

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

What is an ER diagram?

A

A visual tool showing relationships between entities (e.g., Customer ↔ Sale) and their cardinality.

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

Define cardinality in ER diagrams.

A

The degree of participation between entities:

1:1 (one department head per department),

1:N (one customer → many sales),

M:N (students ↔ courses).

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

What is a schema?

A

A technical plan describing the database structure (tables, relationships, data types).

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

What is a data dictionary?

A

A detailed blueprint of data elements, field types, and relationships.

17
Q

What are the three DBMS languages?

A

DDL (Data Definition Language): Builds the database structure.

DML (Data Manipulation Language): Edits data (insert/update/delete).

DQL (Data Query Language): Retrieves data (e.g., SQL SELECT).

18
Q

How are Sales, Customer, and Inventory tables linked?

A

Sales table uses Customer # (foreign key) to link to Customer table.

Sales-Inventory table links Item # to Inventory for pricing.

19
Q

What is a bad database design example?

A

A student table with repeated address fields for every unit enrollment (causing redundancy).

20
Q

Why are accountants involved in database design?

A

They ensure data accuracy, assess feasibility, and estimate ROI.

21
Q

What are the steps in database design?

A

Data modeling (REA/ER diagrams).

Conceptual design (schema).

Implementation (coding with DBMS languages).