Problem Set Activity No.2 - Data Models
Problem Set Activity No.2 - Data Models
A. REVIEW QUESTIONS
4. Describe the basic features of the relational data model and discuss their importance
to the end user and the designer.
1. The DDL (schema) constitutes the Data Definition Language for the
database schema. The DDL's use enabled the database administrator to define the
database schema, i.e., its over-all blueprint.
2. The DDL (subschema) allows the definition of the specific database
components that will be used by each application.
3. The DML is the Data Manipulation Language that allows us to
manipulate the database contents.
Standardization is important to users and designers because it allows them to shift from one
commercial application to another with little trouble when they operate at the logical level.
5. Explain how the entity relationship (ER) model helped produce a more structured
relational database design environment.
- An entity relationship model, also known as an ERM, helps identify the database's
main entities and their relationships. Because the ERM components are
graphically represented, their role is more easily understood. Using the ER
diagram, it’s easy to map the ERM to the relational database model’s tables and
attributes. This mapping process uses a series of well-defined steps to generate
all the required database structures
1:M A customer may generate many invoices; each invoice is generated by one
customer.
M:N An employee may have earned many degrees; a degree may have been
earned by many employees.
B. PROBLEM SOLUTIONS
A. PROBLEM 1
1.1 Write the business rules that governs the relationship between AGENT and
CUSTOMER.
- Given the data in the two tables, you can see that an AGENT – through
AGENT_CODE -- can occur many times in the CUSTOMER table. But each
customer has only one agent. Therefore, the business rules may be written as
follows: One agent can have many customers. Each customer has only one agent.
Given these business rules, you can conclude that there is a 1:M relationship
between AGENT and CUSTOMER
1.2 Create the basic Crow’s Foot ERD.
B. PROBLEM 2
2.1 Identify each relationship type and write all the business rules.
2.2 Create the basic Crow’s Foot ERD for DealCo.
C. PROBLEM 3
3.1 Describe the relationships (identify the business rules) depicted in the ERD here.
D. PROBLEM 4
Create a Crow’s Foot ERD to include the following business rules for the ProdCo
company:
E. PROBLEM 5
Write the business rules that are reflected in the ERD shown in Figure below. (Note
that the ERD reflects some simplifying assumptions. For example, each book is
written by only one author. Also, remember that the ERD is always read from the “1”
to the “M” side, regardless of the orientation of the ERD components.)