CS 115 Database Table Design Lab

Objectives



Relational Database: Stores data in tables related by primary keys.
Primary Key: A field or combination of fields in a relational database table that uniquely identifies a record.
Foreign Key: An attribute defined in one table that is defined to be a primary key in another table that is used for queries across tables.
Update Anomaly: Update anomalies occur when data is duplicated in multiple tables. If the duplicated data changes, multiple tables must be updated.

Reference

Refer to


To Do


You are going to design three tables that can be used to track/report students' progress through college. The design includes appropriate field definitions.

Student Personal Table


Student personal information (e.g. name, address, etc.).

Student Progress Table


Student/course completion information. This should contain all of the information about courses completed (successfully/unsuccessfully), when taken (e.g. semester year), etc.

Course Table


Course information (course number, title, and credit hours).

Table Design


Tables must be designed so that update anomalies do not exist. Update anomalies exist when data exists in multiple tables. If data is duplicated in multiple tables, multiple tables must be updated when changes to data occur.

The table design must support several different queries. Some queries will be to a single table only while others will be across the two tables.

You do not have to write these queries. Be sure your table design will support them.

Single-table queries supported:

Queries across tables


For each table described above

You are going to write a report that defines the tables above. For each table listed above:

Submit your completed report file to D2L


This lab is © copyright protected by Barbara Bracken
This page is maintained by Barbara Bracken Last Modified

5/15/2025