Docsity

Database Design and Development for Pharmacy Management System, Transcriptions of Information Technology

Toggle sidebar
bg1
ASSIGNMENT 1 FRONT SHEET
Qualification
TEC Level 5 HND Diploma in Computing
Unit number and title
Unit 04: Database Design & Development
Submission date
Date Received 1st submission
Re-submission Date
06-07-2022
Date Received 2nd submission
Student Name
DO THE SON
Student ID
GCD191140
Class
GCD1002
Assessor name
DO DUY THAO
Student declaration
I certify that the assignment submission is entirely my own work and I fully understand the consequences of plagiarism. I understand that
making a false declaration is a form of malpractice.
Student’s signature
DO THE SON
Grading grid
P1
M1
D1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13

Partial preview of the text

Download Database Design and Development for Pharmacy Management System and more Transcriptions Information Technology in PDF only on Docsity!

ASSIGNMENT 1 FRONT SHEET

Qualification TEC Level 5 HND Diploma in Computing

Unit number and title Unit 04: Database Design & Development

Submission date Date Received 1st submission

Re-submission Date 06 - 07 - 2022 Date Received 2nd submission

Student Name DO THE SON Student ID GCD

Class GCD1002 Assessor name DO DUY THAO

Student declaration

I certify that the assignment submission is entirely my own work and I fully understand the consequences of plagiarism. I understand that

making a false declaration is a form of malpractice.

Student’s signature DO THE SON

Grading grid

P1 M1 D

❒ Summative Feedback: ❒ Resubmission Feedback:

Grade: Assessor Signature: Date:

Signature & Date:

Figure 17 Drug table..................................................................................................................................................................................................... 16 Figure 18 Order details table ....................................................................................................................................................................................... 16 Figure 19 Customer table............................................................................................................................................................................................. 17 Figure 20 Branch table ................................................................................................................................................................................................. 17 Figure 21 Database diagram ........................................................................................................................................................................................ 19

I. STATEMENTS OF USER AND SYSTEM

REQUIREMENTS.

1. Overview of the problem.

Currently, I am working as a programmer at a technology company. This project is a company project. The customer asked the company to make a store management software for sale. Include activities that make it easier for the store to manage drug sales. eg staff management, drugs and prices, inventory, order management…

2. About this project.

The pharmacy management system has 3 main roles: Staff management, drug management and orders management As pharmacist management: ➢ I want to add and edit the Staff information or delete the Staff information when they no longer work at the store As drug management: ➢ I see what drugs are in the store and the different names of them. ➢ I want to add and delete drug information such as drug name or price of each drug. As orders management:

  1. I want to see order creation date

  2. I want to see the information of the drug and also the customer information in the order

II. Design The Relational Database System

1. Analyse the requirement:

According to a recent survey of pharmacies, It is difficult for pharmacies to manage their drugs as well as their orders and Staff, especially in medium to large drugstore chains for the following reasons: ➢ The amount of medicine is too many different names and many specific types of treatment for other diseases. ➢ Staff in medium to large systems are many, difficult to manage, besides there will be cases where these pharmacists leave work and new Staff come back to work, it will be very difficult to manage if it happens often. ➢ Customers often buy many products at the same time. It will be tough for them if they have to wait for the staff to calculate, not to mention that a customer shop is crowded and they buy many medicinal products, they will wait a long time, and their experience at the store will not be satisfactory. they will complain about their uncomfortable experience. ❖ Because of the above inadequacy, the store decided to create a management system to better manage its drugs and employees as well as increase a better customer experience. Attract more new customers, increase store revenue

2. Database Design with Explanations:

➢ Relationship diagram:

Figure 2 Information of customerOrder table: This table contains the primary keys and two foreign keys including customer_id, and staff id. Contain table attributes like Description and Date orders. Figure 3 Information of ordersOrders Details table: This is the intermediate table connecting the order table and the drug table. this table has orders_id, drug_id, both are primary key and foreign key from drug and orders. There is also an attribute that is the quantity of medicine in an order.

Figure 4 Information of orders detailsDrug table: This table contains the primary key and Drug_Name, Price is attributes like information and price of the drug. Figure 5 Information of drugStaff table: this table contains primary key and full name, gender, age, mail, address,Phone number. These contain table attributes provide information about the Staff.

Figure 8 Information of inventory ◆ Explaning Relationship: Relationships of Customer table and Order table: Figure 9 Relationshop of Customer table and Orders table

  • The relationship of the orders table and the customers table is a one-to-many relationship, a customer can have many orders Relationships of Staff table and Order table: Figure 10 Relationshop of Staff table and Orders table
  • Staff table and Order table : The relationship of the staff table and the order table is a one to zero or many relationships, a Staff can have many orders or no orders

Figure 12 Relationship of Branch table, Inventory table and drug

 Because a Branch Contains many drugs, 1 Drug is located in many branches. ➢ One - many relationships.  Figure 13 Relationship of Branch table, staff table  Two tables are linked by Branch_ID because one staff works only in a branch and a branch may have many staff. ➢ The relationship is one – much ⚫ Data type:

  • Staff:

Figure 16 Inventory table

  • Drug: Figure 17 Drug table
  • Order details: Figure 18 Order details table
  • Customer:

Figure 19 Customer table

  • Branch: Figure 20 Branch table ⚫ Datase diagram: Tables, attributes, and linkages are common components of both ERD and database diagrams, as seen in the database diagram figure above. The ERD, on the other hand, clearly depicts the primary and foreign keys so that the reader may comprehend them. The framework Finally, the database diagram retains all of the key elements of the original concept was ERD.

Figure 21 Database diagram Powered by TCPDF (www.tcpdf.org)Powered by TCPDF (www.tcpdf.org)