I am designing a database to hold information about a book rental business.

Authors Avatar

Gareth Paisey

Unit 10

Unit  2

Assignment  1

I am designing a database to hold information about a book rental business. The database will feature tables including information about the members of the book club, the books available to rent and the member – book relations.

The following outlines what factors are included in each table and for what reasons.

Member:

  • Membership number: To make sure that member has correct membership card.
  • Rentee: The name of the member. This is so that I know the name of my member.
  • Date of birth: To make it easier to recognise customers and to help work out suitability of books for this person.
  • Address: In case member needs to be contacted. If for example they have an overdue book.  

This is my final table that I have created for information about members of my library.

Book Info:

  • Book Reference Number: The reference number of that specific book.
  • Title: Title of book. Useful if member wants to hire a specific book
  • Author: Name of author. Useful if member wants a specific author
  • Rental Price: The cost to rent this book for two weeks
  • Original price: How much this book would cost to buy new
  • Rentee: The name of the person currently renting the specific book
  • Date Due Back: The date that the specific book is due to be returned

This is my final table that I have created for information on the different books available to rent from my library

Member/ Book Relations

  • Membership number: The membership number of the person renting the marked book
  • Current rented book,s reference number: The reference number of the book that is being rented by the person with the corresponding membership number.
  • Return date: Date the book is due back.
  • Outstanding fines: Amount of money owed by that person to the book club.

This is my final table for information that is relevant to both information about members and books

Over the next few pages I will discuss how each factor in the tables was created and why I have customised it for particular reasons.

Tables: Member Information

Member number

 On joining, each new member is given a unique membership number. I made this auto number so that when I entered the name of a new member into the database a number automatically was added to the box. (In numerical order). There has to be a unique field in the table and that is why the membership number is unique. Also this makes it easier to find out information about the customer by just having to remember one number. I have also made this topic the primary key.

Tables: Member Information

Rentee

For obvious reasons, I have made the rentees name text. I have made the field size 30, meaning that the rentees name can be no longer than 30 digits long. None of my member’s names exceed this limit anyway. I have included this information in my database because it is required that I know my members’ names. I have not indexed this data because I did not want any of it to be repeated.

Tables: Member Information

Date of Birth

Join now!

I have formatted this set of information as a short date because each input in this column is

a Date of Birth. For the same reasons I have named the field as date/ time. I have included a validation rule for this field, it being that only people above the age of 11 can join. If a date of birth meaning that the person is under the age of 12 is applied then a validation text will appear saying that this person is too young to become a member of  my book club. I have chosen not to index ...

This is a preview of the whole essay