0% found this document useful (0 votes)
106 views

Database Design Exercise #1: NPP Dataset (Kristin)

This document describes a database design exercise where students are asked to: 1) Normalize a provided NPP dataset into tables with appropriate data types 2) Determine the relationships between the tables 3) Present the results as a set of tables and relationships The document provides the NPP dataset as an example and instructions for students to complete the exercise in groups by selecting their own dataset, normalizing it into tables, choosing data types, and determining relationships to design the database schema.

Uploaded by

pretric
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
106 views

Database Design Exercise #1: NPP Dataset (Kristin)

This document describes a database design exercise where students are asked to: 1) Normalize a provided NPP dataset into tables with appropriate data types 2) Determine the relationships between the tables 3) Present the results as a set of tables and relationships The document provides the NPP dataset as an example and instructions for students to complete the exercise in groups by selecting their own dataset, normalizing it into tables, choosing data types, and determining relationships to design the database schema.

Uploaded by

pretric
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Database Design Exercise #1

NPP Dataset
(Kristin)

Date Site Web Plot Quad SPECIES COVER HEIGHT COUNT COMMENTS
2/5/2005 G 1 N 1 BOER4 1 12 7
2/5/2005 G 1 N 1 BOER4 0.5 12 1
2/5/2005 G 1 N 1 BOER4 0.25 10 3
2/5/2005 G 1 N 1 LATR2 9 24 1 grazed
2/6/2005 G 1 N 1 LATR2 5 18 4
2/6/2005 G 1 N 2 SPCR 4 12 1
2/6/2005 G 1 N 2 SPCR 1 12 3
Database Design Exercise #1

Date Site Web Plot Quad SPECIES COVER HEIGHT COUNT COMMENTS
2/5/2005 G 1 N 1 BOER4 1 12 7
2/5/2005 G 1 N 1 BOER4 0.5 12 1
2/5/2005 G 1 N 1 BOER4 0.25 10 3
2/5/2005 G 1 N 1 LATR2 9 24 1 grazed
2/6/2005 G 1 N 1 LATR2 5 18 4
2/6/2005 G 1 N 2 SPCR 4 12 1
2/6/2005 G 1 N 2 SPCR 1 12 3

• In groups of 2-3 people


1. Split tables (normalize)
2. Determine data types
3. Determine relations
Data available in text format at http://jkim.sdsu.edu/laselva/
Exercise Results – What I would do

Location
Site enum(‘B’,’C’,’G’,P’)
Web integer(1)
Plot enum(‘N’,’S’,’E’,’W’)
Quad integer
1:n
Location_id (PK) integer

Observation
date date Species
species_id integer Abbreviation varchar
Cover float Scientific Name varchar
Height float Common Name varchar
Comments text 1:n Species_id (PK) integer
Location_id (FK) integer
Observation_id (PK) integer
Database Design Exercise #2

• In groups of 1-2 people


A. Select a dataset at your field station you’d like to put in a
database.
B. Design
1. Split tables (normalize)
2. Determine data types
3. Determine relations
C. Present results as a set of tables and relationships.
Downloads

Exercise Data:
• NPP Data in text format (zipped)

Software:
• DB Designer
• MySQL Administrator & MySQL Query Browser Bundle

http://jkim.sdsu.edu/LaSelva/

You might also like