QUESTION
Your Library is currently offering access to the Internet for its subscribers on a fee paying basis. Subscribers should make a booking for each slot of one hour in advanced and a log book is used for this purpose. A fee of Rs 50. is charged per hour.
Staff members also have access when the computers are idle and they also have to make an entry in the log book. However, access in free for staff members. Over several months, the data has been collected in a log book. Now the administration of the library is facing lots of problem to analyse the data.
Since you are acquainted with the creation of small desktop databases, you have been asked to design a database to store the above data.
a) State THREE problems that the administration might be asking (3 queries) and for which it will take a lot of time to get an answer from the log book.
b) Provide the following for the database design
i) Tables to be used
ii) The field names, data type and size of each field in the table
iii) The relationship between each table
Also indicate whether a field is a primary or foreign key.