Docsity

Normalization Exercise - Solved Assignment | RNR 417, Assignments of Earth Sciences

Toggle sidebar
bg1
RNR/GEOG 420/520
Spring 2008
Normalization Exercise
INTRODUCTION
Normalization is a process that reduces redundancy and removes inconsistencies in a database by
reassigning attributes (fields) to a relationship (table) according to an assessment of functional
dependency. In this exercise, you will be reducing a single unnormalized table into a set of
normalized relations. Normalization is a largely intuitive process that evolves from familiarity
with data. It is important to understand that normalization is an exercise in logic that operates on
the attributes, not on the attribute values.
OBJECTIVES
The objective of this exercise is to provide exposure to the problem of relational database
normalization. This process is fundamental to database design and construction. This exercise
will provide experience with identification of undesirable functional dependencies in tables.
BACKGROUND
Many vector data models share common underlying structural elements. For example, when
modeling networks (such as highways) many vector models rely on any integrated system of arcs
and nodes to represent streets and intersections, respectively. The arcs can have information
about the streets associated with them such as name, number of lanes, surface type, and so on.
Likewise nodes can have information about intersections associated with them, such as allowable
turns, stop signs, and traffic signals. These structures, then, can be used to model the real world
network of streets for a variety of purposes.
ARC
NODES
The arc in the example above might have a direction associated with it that is a result of the
ordering of node pairs for each arc. For example if the graphic above were modified to show the
direction of the arc it would look like this:
ARC
NODES
Revised 2/26/08
pf3
pf4

Partial preview of the text

Download Normalization Exercise - Solved Assignment | RNR 417 and more Assignments Earth Sciences in PDF only on Docsity!

RNR/GEOG 420/

Spring 2008

Normalization Exercise

INTRODUCTION

Normalization is a process that reduces redundancy and removes inconsistencies in a database by reassigning attributes (fields) to a relationship (table) according to an assessment of functional dependency. In this exercise, you will be reducing a single unnormalized table into a set of normalized relations. Normalization is a largely intuitive process that evolves from familiarity with data. It is important to understand that normalization is an exercise in logic that operates on the attributes , not on the attribute values.

OBJECTIVES

The objective of this exercise is to provide exposure to the problem of relational database normalization. This process is fundamental to database design and construction. This exercise will provide experience with identification of undesirable functional dependencies in tables.

BACKGROUND

Many vector data models share common underlying structural elements. For example, when modeling networks (such as highways) many vector models rely on any integrated system of arcs and nodes to represent streets and intersections, respectively. The arcs can have information about the streets associated with them such as name, number of lanes, surface type, and so on. Likewise nodes can have information about intersections associated with them, such as allowable turns, stop signs, and traffic signals. These structures, then, can be used to model the real world network of streets for a variety of purposes.

ARC

NODES

The arc in the example above might have a direction associated with it that is a result of the ordering of node pairs for each arc. For example if the graphic above were modified to show the direction of the arc it would look like this:

ARC

NODES

In this case the node on the left represents the origin of the arc and can be referred to as the “FromNode”. Likewise, the node on the right can be referred to as the “ToNode”. The graphic is modified below to identify the “from” and “to” nodes of the arc.

ARC

From Node^ To Node

INSTRUCTIONS

The figure below is an abstract representation of a portion of a street network. Below it is an associated table of information about the street network. In that table FNODE_ID and TNODE_ID represent the FromNode and ToNode, respectively.

Using the figures, please complete the exercise on the pages following this one. You are to have the exercise completed and submit it to your TA at the beginning of next week’s lab. Detach and complete.

73

STREET_INFO

Street_ID Street_Name Street_Type FNODE_ID TNODE_ID Number_Arcs@FNODE Number_Arcs@TNODE

12 MAIN ST 72 73 5 1 13 ORANGE AVE 84 72 1 5

....... .......

12

Main St

84

Orange Ave 13

72

Part Three – Normalization of table STREET_INFO

In the space below, please diagram the normalized form of the STREET_INFO table. You will likely derive four tables. All the tables should be valid relations. You might want to start by identifying the objects of interest that are carried on STREET_INFO. Be sure and name your tables, the fields within them, and show a couple of sample records. Underline the name of the primary key in each of the relations.

Part Four – Identify the foreign key and parent relation in any relation where it is applicable.

RELATION FOREIGN KEY PARENT RELATION