You are on page 1of 2

COMP 1630 Relational Database Design and SQL Week 01 Exercise Give detailed answers to each of the following

questions labelling your answers clearly. Save your work in the Desire2Learn Dropbox for Week 01 Exercise Part I

Answer the following questions using the above file structure. 1. How many records does the file contain? How many fields are there per record? 7 /5 2. What problem would you encounter if you wanted to produce a listing by city? How would you solve this problem by altering the file structure? The address is compound. I can create different fields to separate street address, city, states, and postal code 3. If you wanted to produce a listing of the file contents by last name, area code, city, state, or zip code, how would you alter the file structure? Separate first name, last name and middle name initial, street address, city, states, and postal code 4. What data redundancies do you detect? How could those redundancies lead to anomalies? Manager phone , project_manager, manager_address Create a new file only with project manger id, project manager first name, middle name initial, last name, phone, street, city, state, zip code as attributes and create another file with Project manager id , project code and project bid price. Part II List the attributes required to capture the data for the entities in a data model using the information provided below. The data model will hold information relating to a book collection. The following information defines the requirements which the data model must meet. The entities are as follows: Author Author ID , last name, middle name initial, last name, address, city, states, country ,postal code Book Book ID, Title, ISBN11, ISBN 16, Barcode, edition, year, pub date, type, price, qty Publisher Publisher ID , Name, Phone number, address, city, country 1

The data model should allow the following questions to be answered: Do you have any books by Timothy Findley? How many authors live in BC? Do you have a hardback edition of Bishops Man? What are the current prices for all the books? What is the published date for A Fine Balance? What is the telephone number for the publisher Penguin Books Canada?

You might also like