r/DatabaseHelp • • Dec 01 '16
Database design help
So I have a database project I could use help on, the requirements are:
The library patrons’ data should include:
Library card number
Last name
First name
Address
City
State
Zip code
Phone
A book record should include
- Book ID
- Book Title
- Author’s last name
- Author’s first name
- Year of publication
- ISBN
Include forms to:
- Enter new patrons
- Enter new books
- Facilitate book checkouts/checkins (see example) (note, the due date should be auto calculated to be two weeks after the check-out date)
I am thinking I need three tables patron, book, and check out. Any help would be much appreciated.
2
Upvotes
1
u/[deleted] Dec 01 '16
I am just looking for help with the table design and relationships. I am thinking I need a patron table and book table, then have a check out table with card number and book ID in order to have a report with books checked out by a patron
1
u/[deleted] Dec 04 '16
Ok got pretty much everything working. Just need to figure out how to eliminate a book that's checked out from the books checked out report once a patron checks the book in. Any ideas on how to do this, cant find any help with Google.
1
u/myegghead Dec 01 '16
What help do you need exactly? Looks good so far. You could normalize City, State, Zip, Author. May be overkill though, depending on the task.