Sie sind auf Seite 1von 5

Week Three Assignments M&D of DBS

Readings
As with many things, before we can actually sit down to implement a
database we need to plan what we want to do. Just as you wouldnt
build a house without blueprints, we never build a database with a
schema model. The ER diagram is the start of the database design
process. The E-R model has been enhanced over time in order to
deal with complex data encountered in todays business
environment. The term enhanced entity-relationship (EER) model is
used to identify the model that has resulted from extending the
original ER model. The most important modeling construct
incorporated in the EER model is supertype/subtype
relationships. This feature enables us to model a general entity and
then subdivide it into several specialized entity types. In addition,
just as there are rules governing how we build houses there are also
rules in the form of business rules that define and constrain the
structures we build in a database. Understanding how business rules
apply to database structures is an important concept in the design
of a database.
We will also continue our study of the overall database environment and the components that
make up that environment. We will use T-SQL to create two tables for the database structure we
previously created.
Learning Objectives:
Explain how relationships between entities are defined, refined, and incorporated into
o
o

database design.
Demonstrate how ERD components affect database design.
Understand the main characteristics of entity relationship components.

Read Chapter 4 and review the slides from Database Systems Design,
Implementation, and Management. The links to the PowerPoint slides are
located below.
Additional reading: Chapter 1 and 2, Microsoft SQL Server 2012 T-SQL
Fundamentals, Itzek Ben-Gan
Make use of any outside web or text resources available to you to complete the
assignments.

Useful Links

File links for this week:


chap4.ppt

ER Modeling
Please review the document at the following link: ER Modeling

Forum Assignment Week 3


By Thursday morning

post two to three paragraphs answering the

following:

Post 2-3 detailed paragraphs on one of the following


topics: Briefly, but precisely, explain the difference between
single-valued attributes and simple attributes. Give an example
of each.

Briefly, but precisely, explain the difference between


single-valued attributes and simple attributes. Give an
example of each.

What are multivalued attributes, and how can they be


handled within the database design?

Assignment Week 3

Complete the following exercise.

1. Use the following Crows Foot ERD to write the ten cardinalities appropriate
for the ERD.

2. Write the business rules reflected in this ERD.


3. Describe precisely the composition of the DEPENDENT weak entitys primary
key. Use proper terminology in your answer.

Put the answer into a single Word document and submit to the link provided below.

Save the

word document as Assignment_3_3_yourlastname


(50 points)

Assignment Week 3 SQL


Accomplish the following exercise and copy/paste the results into your
week 3 assignment submission Word document.
Use T-SQL to create two table structures based on the following entities:

Table name: Booth


Booth_Product

Table name: Machine


Booth_Price

Machine_Product

Machine_Price

Each table will have the two attributes indicated in the example above. The
MACHINE_PRODUCT and BOOTH_PRODUCT will be character data type
and the two price fields will be a money data type. Copy and paste the TSQL table create statements into your assignment submission for this part
of the assignment. Preceding your T-SQL create table statement use the
following statements:
use cis305;
if object_id('dbo.booth', 'U') is not null
drop table dbo.booth;

T-SQL create table statement AND


use cis305;
if object_id('dbo.MACHINE', 'U') is not null
drop table dbo.MACHINE;

T-SQL create table statement

Question: What is the purpose of the if-drop statements?

Once you have accomplished that action, paste the


script into your assignment submission document for
this part of your assignment.
(25 Points)

Assignment Week 3 Submission Link

Assignment 3.4 - Individual ERD for Project


This week I will assign you to groups and together you will begin to work on a project that you will
present at the end of the course. The first activity will be to analyze the assigned situation and to
create an ERD for the project. The ERD that will ultimately be turned in will be a group effort,
however, for this week each of you will come up with your own individual ERD which you will
share with the class. In your groups, you will define one ERD that will be submitted to fulfill the
first group project milestone (which will be next week).

Read the narrative for your assigned group project. Based on this narrative each of you will
individually develop an ERD for the project. Be sure to include any "parent/child" relationships
you may deem to be significant.

(25 points)

Quiz 2 (Chapter 3)

Das könnte Ihnen auch gefallen