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

Submission Example For Database Design Assignment

This document provides instructions for submitting a database planning assignment. It includes examples of tables to include in a Word document, how to draw relationships between tables, and examples of fields to explain and queries to write. The tables shown track a book collection, check-outs, and patrons with fields like call number, title, author, and checkout date. Queries listed check for books checked out in May and unreturned books with results including names and phone numbers.

Uploaded by

Brian Omare
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
100 views

Submission Example For Database Design Assignment

This document provides instructions for submitting a database planning assignment. It includes examples of tables to include in a Word document, how to draw relationships between tables, and examples of fields to explain and queries to write. The tables shown track a book collection, check-outs, and patrons with fields like call number, title, author, and checkout date. Queries listed check for books checked out in May and unreturned books with results including names and phone numbers.

Uploaded by

Brian Omare
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

This is an example for the Database Planning Assignment.

Use your own table plans to create a


similar document. Upload to the D2L dropbox to submit.

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

Call Number Title Author Publisher Year


McGraw-
QA76.9.D26 O65 2009 Databases : a beginner's guide Oppel, Andrew J Hill 2009
QA76.9.D3 G523 1989 Database : step-by-step Gillenson, Mark L. Wiley 1990

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

Person ID First Name Last Name Phone number


111 Sarah Kruse 507-389-3259
112 Jacob Smith

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

(continue to include at least 5 fields)

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

Example of a Single Table Query


What are all the book titles in my collection?
Results: Databases : a beginner's guide
Database : step-by-step

You might also like