DB - Assignment 2 T1
DB - Assignment 2 T1
Design
Introduction
This document outlines the database design for the Go Wild Wildlife Park. The
database is designed to manage records of animals, their species, diets, keepers,
and enclosures.
Data Dictionary
Animals Table :
Species Table:
Diet Table
Keepers Table
Name VARCHAR(1 Keeper's full Not Null, Length check (2-100 chars)
00) name
DateOfBi DATE Keeper's DOB Not Null, Range check (must be 18+
rth years old)
Rank VARCHAR(1 Keeper's rank Not Null, Value check ("Junior",
0) "Standard", "Senior")
Enclosures Table
Design Decisions
The database is normalized to Third Normal Form (3NF) to eliminate data
redundancy.
Separate tables for Species, Diet, Keepers, and Enclosures prevent data
duplication.
The Animals table serves as the central entity, connecting all other tables
through foreign keys.
Relationships:
One-to-Many relationships between Keepers and Animals, Enclosures and
Animals, Species and Animals, and Diet and Animals.
Data integrity:
Implemented data integrity features such as primary keys, foreign keys, not
null constraints, value checks, and range checks.
Implementation
To be able to do this database, you will have to use a database management system
(DBMS) like Mysql, PosgreSql, or SQL Server. The specific steps to set up the
database will depend on the DBMS you choose, but the general process would be: