following is the description from the manager, Mr. Seth Akoto. "here, medicines that require prescriptions are sold only to people that have prescriptions. It is the pharmacy attendant that serves customers when they enter the pharmacy. Usually, people walk in and either give the prescription or mention the medicine they wish to purchase. The worker then searches to see if the medicine is in stock. If in stock, worker accepts payment from customer and gives the medicine and a receipt to the customer. " ermine all the entities from the description given by Mr. Akoto. ming Mr. Akoto only wants a database system that would keep records of medicine

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
100%
ASSESSMENT 02
1. You are required to design and implement a database system for a pharmacy shop with only one
branch.
The following is the description from the manager, Mr. Seth Akoto.
"here, medicines that require prescriptions are sold only to
people that have prescriptions. It is the pharmacy attendant
that serves customers when they enter the pharmacy. Usually,
people walk in and either give the prescription or mention the
medicine they wish to purchase. The worker then searches to
see if the medicine is in stock. If in stock, worker accepts
payment from customer and gives the medicine and a receipt
to the customer.“
1. Determine all the entities from the description given by Mr. Akoto.
2. Assuming Mr. Akoto only wants a database system that would keep records of medicine{name
of medicine, amount in grams in stock} and purchases{medicine bought, amount in grams
bought, who attended to customer, when it was sold, contact and name of customer that
bought the medicine}
a. Draw and ER diagram with only the most important entities from question 1 bearing in
mind what Mr. Akoto wants.
b. Write the SQL script that would:
i. Create a database named pharmacy.
ii. Implement all the identified tables and their relationships using appropriate
datatypes for the various columns in each table.
Transcribed Image Text:ASSESSMENT 02 1. You are required to design and implement a database system for a pharmacy shop with only one branch. The following is the description from the manager, Mr. Seth Akoto. "here, medicines that require prescriptions are sold only to people that have prescriptions. It is the pharmacy attendant that serves customers when they enter the pharmacy. Usually, people walk in and either give the prescription or mention the medicine they wish to purchase. The worker then searches to see if the medicine is in stock. If in stock, worker accepts payment from customer and gives the medicine and a receipt to the customer.“ 1. Determine all the entities from the description given by Mr. Akoto. 2. Assuming Mr. Akoto only wants a database system that would keep records of medicine{name of medicine, amount in grams in stock} and purchases{medicine bought, amount in grams bought, who attended to customer, when it was sold, contact and name of customer that bought the medicine} a. Draw and ER diagram with only the most important entities from question 1 bearing in mind what Mr. Akoto wants. b. Write the SQL script that would: i. Create a database named pharmacy. ii. Implement all the identified tables and their relationships using appropriate datatypes for the various columns in each table.
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY