Database - Project - Report
Database - Project - Report
Database - Project - Report
1. Existing System,
2. Proposed System,
3. Design of our database,
4. Data Dictionary,
5. User Manual,
6. Bibliography.
The design of our database will consist of the description of all the
relationships between all the tables. It will also consist of the brief design of
the forms used for data entry and the queries being run in the background.
1
The data dictionary consists of the detailed explanation of each table,
form, query etc., which would include the properties of the individual fields in
every table.
The user manual is a complete guide of our database, which would help
the end user in understanding our database better and getting the most out
of it.
In the end we have given the bibliography, which contains the list of the
books we have consulted for creating our database.
2
EXISTING SYSTEM:
The reason that has driven us to make a library database is that the
manual organization of libraries is not in conformity with the requirements of
the contemporary age of today. Since the dawn of the computer age people
have relied on computer in every aspect of life but in many areas of Pakistan
computer s still seem like a far-fetched idea. With reference to the existing
system in Pakistan libraries are still manual which highlights its own
disadvantages.
3
PROPOSED SYSTEM:
In order to make the library system more organized, efficient and
productive, we have proposed to automate the library system by making a
database for it.
For recovering the drawbacks of the existing system we have thought
up a computerized platform for all libraries.
When fresh stock of books will arrive at the library, an entry will be
made. The process of entering them into the database records will be as
follows:
4
At present, all the above data is noted in registers manually by hand.
All of this information will now be keyed in by the librarian or by the data
entry personnel.
Similarly, nowadays the librarians use registers to record all the books
that are issued. Data required for inserting the information of the
student’s issuing the book will include:
At this time, we have, in our report only mentioned the benefits, our
database will provide to the library staff, however, we want to make all
necessary changes to make the database useable by the students
themselves by the application of some passwords.
5
DESIGN OF OUR DATA BASE:
It refers to the structure on basis of which the entire database stands.
The detailed design of our database includes four tables, eight queries, two
reports and two macros, which are interlinked with each other through
various relationships. There are also a number of forms, which are provided
to give the user an interface through which they can enter information into
the base tables.
Tables:
1. Accession Register,
2. Student Record,
3. Books Issued Record,
4. Books Returned Record, All books being returned by the students is
recorded in this table.
Accession Register:
This register is used for keeping records of all books handled by the
library. Data is entered into this base table through a form, which acts as an
interface between the raw database design and the user. The form, which
performs this function, is named as “Books Entry Form”.
Student Record:
Keeps track of all the records named by the students. A form named
“Students Entry Form” accesses this base table.
Keeps tracks of all the books issued by the students. There is a form
named “Books Issued Entry Form” which is used for entering information
about books being issued from the library.
All books being returned by the students are recorded in this table. As
with every other base table created, books returned record also uses a form
named as “Books Returned Entry Form”, which acts as a link between the
actual database and the user. This form, like all others that have been
created for this purpose, is used to enter information about books being
returned to the library.
6
Relationships between the Four Tables:
Accession No,
Issue Date &
Issue Time
7
Queries:
AccessionNo,
Author,
Title,
Subject,
ISBN,
Year,
Volume/Edition
Since this search is based on only one table i.e., Accession Register,
therefore, all the corresponding values of the accession number entered are
displayed in these fields. A small button named “Acc#” has been place on
the “Main Menu” runs this query when clicked. There will be either one
matching book or none because accession number is the primary key in this
table and it can have no duplicates.
SQL Command:
8
Book Search (on basis of Author Name):
AccessionNo,
Author,
Title,
Subject,
ISBN,
Year,
Volume/Edition
All these values are selected from only one table i.e., Accession Register.
The output can have any number of books because author name can be
repeated in this table. A small button named “Author Name” has been
placed on the ”Main Menu” which prompts the user for an author name
when it is clicked, on basis of which the query is run.
SQL Command:
In this query, as in all others of its kind, the user is prompted for a
subject, on basis of which the search is carried out through the accession
register. The result is displayed in a tabular form exactly the same as the one
described earlier for book search (on basis of author name) or (on basis of
accession#).
A small button named “Subject” has been placed on the ”Main Menu”
which prompts the user for a subject when it is clicked, on basis of which the
query is run.
SQL Command:
9
WHERE ((([Accession Register].Subject)=[Enter Subject for which book is
required:]));
In this query, as in all others of its kind, the user is prompted for a
title of a book due to which the search is carried out through the accession
register. The result is displayed in a tabular form exactly the same as the one
described earlier for book search (on basis of author name) or (on basis of
accession#).
A small button named “Title of Book” has been placed on the ”Main
Menu” which prompts the user for the title of a book when it is clicked, on
basis of which the query is run.
SQL Command:
This query has been created to give the librarian an easy way to know
the exact date and time when a particular book was issued. The “Books
Returned Entry Form” requires these values. When a book is being returned
the librarian runs this query to find the exact data and time that particular
book was issued as these values link the tables “Books Issued Record” and
“Books Returned Record”.
The result of this query is displayed in tabular form. The following
fields are displayed:
Accession No,
Issue Date,
Issue Time
All the corresponding values are taken from only one table i.e., books
issued record. A small button has been placed on the “Main Menu” named
as “Book Return Help” which prompts the user for an accession number
when it is clicked.
If a particular book has been issued 50 times then this query will
return 50 values. It will be in ascending order and it will be up to the librarian
10
to choose any of the values. The last tuple of values should always be used in
the books returned entry form for a particular book being returned.
SQL Command:
Accession #,
Author,
Title,
Subject
The user can enter a value in any of the above fields and the matching
data will be displayed. The result is displayed in the report form and the
following attribute values are displayed:
Accession #,
Author,
Title,
Subject,
ISBN,
Year,
Volume/Edition
SQL Command:
11
a macro named “Macrostudent”. A small tab has been placed on the “Main
Menu” for using this query. When that tab is clicked a form named
“Searching for Students (form)” is opened which has the following fields:
Code#,
Name,
Program,
Semester,
Section,
Phone #
The user can enter a value in any of the above fields and the matching
data will be displayed. The result is displayed in the report form and the
following attribute values are displayed:
Code#,
Name,
Program,
Semester,
Section,
Address,
Phone #
SQL Command:
Code#,
Name,
Program,
Semester,
Section,
Phone#
12
All these values are selected from only one table i.e, student record The
output can have any number of information regarding students because
student name can be repeated in this table. A small button named “student
Name” has been placed on the ”Main Menu” which prompts the user for an
student name when it is clicked, on basis of which the query is run.
SQL Command:
Report:
We have used two reports in our database. They are named as:
13
Report for Student Search:
Macro:
1. Macroaccession,
2. Macrostudent
Macroaccession:
Macrostudent:
14
DATA DICTIONARY:
Data dictionary means data about data. Data dictionary gives the
complete detail of database, in every aspect possible. The designer of the
database provides it so that if any other database administrator wants to
update the database he would have complete information about the way it
was created.
In our data dictionary we have included complete information about
every table being used in our database. We will be explaining every field, in
every table and their properties in complete detail.
1. Accession Register,
2. Student Record,
3. Books Issued Record,
4. Books Returned Record
Accession Register:
Field Name/ Data Field Size Default Validation Validation Indexed Remarks
Properties Type Value Rule Text about
Fields
AccessionNo Number Long 0 >= 1 Should be Yes (No Primary
Integer (4) >= 1. Duplicates) Key
Date Date/Time 8 =Date() >=Date() Should be No Medium
>= current Date
date. (format
Author Text 50 <None> <None> <None> No <None>
Title Text 50 <None> <None> <None> No <None>
Subject Text 50 <None> <None> <None> No <None>
Publishing Text 50 <None> <None> <None> No <None>
Place
Publisher Text 50 <None> <None> <None> No <None>
ISBN Text 50 <None> <None> <None> Yes (No <None>
Duplicates)
Cover Type Text 50 <None> <None> <None> No <None>
Year Number Long <None> <None> <None> No <None>
Integer (4)
Pages Number Long <None> <None> <None> No <None>
Integer (4)
Price Currency 8 <None> <None> <None> No <None>
Volume/Edition Text 50 <None> <None> <None> No <None>
Source Text 50 <None> <None> <None> No <None>
Remarks Memo (Unlimited) <None> <None> <None> <None> <None>
15
Student Record:
16
Detail of Relationships between Base Tables:
There are six relationships between the four base tables. These are
explained in detail below:
Referential Diagram:
In student record, the CodeNo has only one link with the Code no in
books issued record. The CodeNo in student record is the primary key in that
table while it is a foreign key in the books issued record. The relationship
type is One-to-Many.
Referential Diagram:
In books issued record and books returned record there are three
fields which act as the primary key and form a composite key. The
relationship type is One-to-One. This is necessary because of the type of link
required between these two tables.
Referential Diagram:
Main Menu:
When our library database is accessed, the first form viewed by the
user is the “Main Menu” form. This form has gives the user access to the
entire database on the click of a single button. The various features of the
main menu form are given below:
Various tabs have been provided in the main menu. Their usage is as
follows:
1. Book Entry Form is used to enter new books into the database. On
clicking this tab a new form opens through which a user can enter new
books into the record of the library database.
18
2. Circulation Desk, when clicked open another form consisting of two
further tabs “Borrow” and “Return”. They are used for keeping
record of books being issued and returned respectively.
8. Title of Book, prompts user for title of a book on basis of which the
search is carried out on the database.
11. Close Main Menu, this button has been placed for user
convenience so that if he/she wishes to close the main menu, which
ultimately closes the database, they can do so by clicking on this
button.
12. Quit MS-Access, when this button is clicked, it not only closes
the database but it also closes Microsoft Access.
When “Book Entry Form” button is clicked on the main menu a form
opens which consists of all fields required for collection of information about
books being held by the library.
The entry of a new book is done in the following way:
19
1. When a new book comes into the library the book entry form is
opened,
Displays Total
Number of
Click Here to Records
go to first
Record in
DataBase
Click Here to go to
next/previous Click Here for Entering a New Book
Record in
DataBase
Shows Number of Record being displayed
Circulation Desk:
20
Tab to
Close
Circulation
Desk
21
Books Returned Entry Form:
Searching:
22
(Illustration after “Searching” illustration)
Search Counter:
Clicking on
this tab
closes Search
Counter
23
All field To close
values form and
already go back to
entered Search
must be Counter,
deleted click here
before
entering
value for When done
which entering
search is information in
to be the respective
carried fields click
out ‘OK’
All field
values
already
entered
must be
deleted
before
entering
value for
which
search is
to be
carried
out
24
Control Keys perform the same function in all forms
All the other individual searches, when run, prompt the user in the
following manner:
25
BIBLIOGRAPHY:
To create our database we consulted:
MS-Access Help,
Office 2000 (book),
Applications of Microsoft Access (book)
26