If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Database Concepts & Design > Problem with My System Design

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-10-04, 04:31
hifni hifni is offline
Registered User
 
Join Date: Jun 2004
Posts: 3
Lightbulb Problem with My System Design

Hi,
I've Created a Data Model for my Library System. But I would like get involved with you and would like to verfy that the Data Model I've created is Ok or not?

The system is for our Library in our office. This Library has Books for the Trainees. So Trainees come down to the library and requests Books(Trainees can take maximum of 2 books for each request). I also maintain the Authors and as well as Publishers. Also I've categoraticaly divided each books as Management, Computers, etc....... Therefore, I maintain a table called Category as well. Below I give the Data Model Entities I've so far created.

Books(ISBN*, AuthorID, PublisherID, CategoryID, Title, CopiesAvailable, Edition, DatePublished)

Authors(AuthorID*, Lastname, ForeName, Address, Email, URL, Tel)

Publishers(PublisherID*, Name, Address, Email, URL, Tel)

Categories(CategoryID*, Name, Discription)

Lending_Master(LenID*, ID, DateRequested)

Lending_Detail(LenID*, ISBN*, DateReturned, IsReceived)

Trainees(ID*,DeptID, LastName, NameByInitials, Initials, Title, NIC#,Address, Contact)

Department(DepID*, Department Name)

FineRate (ChargePerDay, DateModified)


However the main issue I'm facing is how to maintain the overdue books in this system. Do I need to create a new table for it or not is my main concern here. Therefore I kindly request help from you all to help make a good data model.

Regards,

Hifni
Reply With Quote
  #2 (permalink)  
Old 12-10-04, 08:51
rajiravi rajiravi is offline
Registered User
 
Join Date: Apr 2004
Location: Toronto, Canada
Posts: 249
One simple way to handle overdue information is to have a column called "dateDue" in Lending_Detail table. Then, a comprison of the dateReturned values with the dateDue values would tell you what books are overdue.


Ravi
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On