Submission Example For Database Design Assignment
Submission Example For Database Design Assignment
1. Copy the 3 excel tables and paste into your Word Document. This should show field names at the
top and data records below.
2. Use the drawing tools to indicate the relationships (primary keys connected to the foreign key in the
related table).
Collection Table
Check-out Table
Date
Person ID Call Number Date out returned
111 QA76.9.D26 O65 2009 1/12/2015 1/15/2015
111 QA76.9.D26 O65 2009 5/12/2015 5/17/2015
112 QA76.9.D3 G523 1989 5/18/2015 5/20/2015
111 QA76.9.D26 O65 2009 10/27/2015
Person Table
3. Select 5 fields and explain their properties. Consider what you would validate when the data is
entered.
Call Number – primary key for Books table, alphanumeric (letters and numbers), 20 characters long,
a required field, unique for each record
Title – letters, numbers and special characters permitted, 25 characters long, required
Year – 4 digits, numbers only
4. Write out two queries using the field names in your tables. (This does not need to be in SQL, it can
be regular language.) One of these must use more than one table. List the answer or results you
would get from your data.
Query: Who checked out a book in May? Display first and last name.
Results: Sarah Kruse
Jacob Smith
Query: Who checked out a book, but has not returned it? Display first name, last name and phone
number.
Results: Sarah Kruse 507-389-3259