Professional Documents
Culture Documents
Share
Share
CHAPTER – 1
INTRODUCTION
1.1 Introduction to DBMS
Database and database technology has a major impact on the growing use
of computers. It is fair to say that databases play a critical role in almost all
related data. By data, we mean known facts that can be recorded and that
numbers, and addresses of the people you know. You may have recorded
this data in an indexed address book or you may have stored it on a hard
we may consider the collection of words that make up this page of text to
use of the term database is usually more restricted. A database has the
following properties:
called the mini world or the universe of discourse. The changes to the
referred to as a database.
In other words, a database has some source from which data is derived,
buys a camera) or events may happen that may cause the information
reliable at all times, it must be a true reflection of the mini world that it
soon as possible.
courses, faculty teaching courses, and the use of rooms for courses.
for such systems as well as their use is growing rapidly. The alternative
the following
● We probably do not have 500GB of main memory to hold all the data. We
and bring relevant parts into the main memory for processing as
needed.
may want to ask about the data. These programs are likely to be
address the details of such concurrent access, this adds greatly to their
complexity.
operating system files, we can use the DBMS’ s features to manage the
data in a robust and efficient manner. As the volume of data and the
becomes indispensable.
specific data, updating the database to reflect changes in the mini world
and generating reports from the data. Sharing a database allows multiple
retrieved; a transaction may cause some data to be read and some data to
database may have a life cycle of many years, so the DBMS must be able to
set of programs to create and maintain the database, in effect creating our
of users.
being managed, and how different groups of users use it, it can be
retrieval efficient.
Further, the DBMS protects users from the effects of system failures.
the DBMS.
ARCHITECTURE OF DATABASE
physical data model and describes the complete details of data storage
user views. Each external schema describes the part of a database that a
particular user group is interested in and hides the rest of the database
from that user group. As in the previous level, each external schema is
Brief Description
The mini-project entitled “ PHARMACY MANAGEMENT SYSTEM “ is
developed as a part of the fifth semester DBMS laboratory, for the partial
Project Description
The project entitled Pharmacy Management System this is developed for
established Medical store in the city. To manage all operations of the medical
store this project is being developed. It will have the entire basic module to
Objectives
The main objective of the application is to automate the existing system of
Scope
This application can be used by any other store to automate the process of
1.3 Motivation
1.4 Challenges
It is difficult to store the all records in medical store like details of pharmacist,
records. To manage all operations of the medical store this project is being
developed. It will have the entire basic module to manage the medical store
operations.
CHAPTER – 2
future include:
CHAPTER-3
DATABASE DESIGN
The required software is used for ordering food online. The system
● 2. Signup option
● 4. Order Option
● 7. Logout option
NON-FUNCTIONAL REQUIREMENTS
As with Apache2, this software is freely available and can be installed and
run under most operating systems. The server hardware can be any
computer capable of running both the web and database servers and
handling the expected traffic. For a small scale restaurant that is not
appropriate. Once the site starts generating more hits, though, it will likely
SECURITY REQUIREMENTS
Some of the factors that are identified to project the software from
CONSTRAINTS
1. Domain constraints
2. Key constraints
1. Domain constraints:
type to a column we limit the values that it can contain. Eg. If we assign the
datatype of attribute age as int, we can’ t give it values other than int
datatype.
out of which we choose one of the keys as primary key, we don’ t have
any restriction on choosing the primary key out of candidate keys, but it is
3. Null values are not allowed in the primary key, hence Not Null constraint
1. Entity Integrity constraints says that no primary key can take NULL
value, since using primary key we identify each tuple uniquely in a relation.
or tables and used to maintain the consistency among the tuples in two
relations.
foreign key of relation R1 have the same domain(s) as the primary key of
relation R2, then the foreign key of R1 is said reference or refer to the
3. The values of the foreign key in a tuple of relation R1 can either take the
values of the primary key for some tuple in relation R2, or can take NULL
3.2.1 ADMIN
ADMIN table has the admin_id, admin_username, admin_password
3.2.2 CASHIER
Cashier table has the
casier_id,first_name,last_name,staff_id,postal_address,phone,email,
3.2.3 IDS
ids table has user_id,ids,invoice_id and user_id is used as primary
3.2.4 INVOICE
INVOICE table has the attributes
3.2.5 INVOICE_DETAILS
INVOICE_DETAILS table has the attributes
3.2.6 PHARMACIST
PHARMACIST table has the attributes
pharmacist_id,first_name,last_name,staff_id,
3.2.7 PRESCRIPTION
PRESCRIPTION table has the attributes
3.2.8 RECIEPT
RECIEPT table has the attributes
reciptNo,customer_id,total,payType,serialno,served_by,
Date and reciptNo is the primary keys as shown in Table 3.2.8
.
Table 3.2.8 Structure of RECIEPT
3.2.9 SALES
SALES table has the attributes
3.2.10 STOCK
STOCK table has the attributes
stock_id,drug_name,category,description,company,supplier and
3.2.11 TEMPPRESCRI
TEMPPRISCRI table has the attributes
userid,customer_id,customer_name,phone,
3.2.12 TRIGGERS
date in the table receipt and prescription table before insertion and before
updation respectively.
multiple programs.
Table 2.8, is used to set an attribute from all the users of Cashier in table
Cashier
Table 3.2.13, is used to set an attribute from all the users of Pharmacist in
table Pharmacist
3.4 RELATIONSHIPS
P
ADMIN Administers PHARMACIST
users
user
SCHEMA DIAGRAM
shows the database object and their relationship which represents the
logical view of the database and how the relationships among them are
represented.
This Schema Diagram in Fig 3.2 represents different tables used and
underlined attributes are primary keys and arrows are used to represent
foreign keys.
3.6 NORMALIZATION
As the domain of all attributes of all relations in the database has atomic
value and no tuples can have a set of these values, all relations are in 1NF.
CHAPTER-4
IMPLEMENTATION
server. The web server software combines the results of the interpreted
and executed PHP code, which may be any type of data, including images,
Apache is the most widely used web server software. Developed and
software available for free. It runs on 67% of all web servers in the world. It
is fast, reliable, and secure. It can be highly customized to meet the needs
4.2.2.3 HTML
within it, is a hypertext. Every time you click on a word that brings you to a
used to make text more interactive and dynamic. It can turn a text into
images, tables, links, etc. An HTML document is made of many HTML tags
4.2.2.4 JAVASCRIPT
Javascript is a dynamic computer programming language. It is lightweight
allow client-side script to interact with the user and make dynamic pages.
capabilities.[4]
CHAPTER-5
RESULTS
This query is used to get the details of the cashier using INSERT querry
In this querry, all the details are fetched using SELECT * command
Here the update query is called to update the user of an already existing
based on its name and category id,address etc respectively.
Here the delete query is called to delete a particular person based on user
id, user name
APPENDIX ‘ B’ – SCREENSHOTS
On successful login, admin can either add, update or delete any user and
can also view the details of all the pharmacists and cahier
admin can access to add, update or delete any pharmacist and view their id,
admin can access to add, update or delete any pharmacist and view their
PHARMACIST can view and write prescription. And also check the
On this page, PHARMACIST can view and add the prescription ,here
figB.7
On successful login,cashier can move to process payment page shown in fig B.8
In this payment page using invoice Id they can view the temporary
prescription and can pay the amount which is shown in Fig B.9
CONCLUSION
the essential data and save the data and actually about the database of a
about medicine or drugs which are in stocks which data can also be
updated and edited.It works as per the requirement of the user and have
software also have ability to print the bill and invoices etc.The record of
suppliers supplies can also be saved in it.There are other function available
too . The main purpose is effectively and easily handling of pharmacy data
BIBLIOGRAPHY
2014
[2] https://github.com/samgakii123/
[3] http://php.net/
[4] https://www.http://en.wikipedia.org/wiki/PHP
[5] https://www.w3shools.com