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
View all comments
Show parent comment
1
u/[deleted] Dec 05 '16
Your checkouts table needs a date returned, so that when a book gets returned it's indicated as as such. A transaction with the "customer" (patron) is opened when they check out a book and closed when they return it.