0% found this document useful (0 votes)
24 views5 pages

Mini Project Year V

Uploaded by

Bilal Hussein
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views5 pages

Mini Project Year V

Uploaded by

Bilal Hussein
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Database Project

Project Goal: the goal of the project is providing realistic experience in the conceptual design,
logical design, implementation, operation, and maintenance of a small relational database as well
as familiarizing with user interface or frontend applications.

Project 1: Pharmacy stock management system


Details shall include but not limited to
1. Maintain the details of stock which record the quantity of medications continuously as the
prescription is filled and dispensed. This way, the medication is automatically removed from
inventory and always have updated stock information
2. Maintain the details of drug wholesalers, to allow pharmacists to order medications on a
wholesaler’s website
3. Details of customers i.e. name, address, id etc.
4. Medication ordering to generate automatic orders. The system calculates how many items are
needed to raise the stock level and adds this quantity to the order. The stock that is to buy if
quantity goes less than a particular amount.
5. Reporting system which generates reports allowing pharmacists to easily determine the better
performing wholesalers and vendors and understand what factors come into play when
ordering medications.

Queries: Construct and execute SQL queries for the following:


Insert sample values and
a) Find the top most sold drugs in the pharmacy and their names
b) Find the least sold drugs or medications for a given year
c) For each item in the stock, compute the average selling price and the average time the
medication was on the market.
d) Record the sale of a drug that had been listed as being available. This entails the sales price,
the buyer and the date.
Project 2: Hospital management system
Features to be included in the system
1. Full description about the patients about personal detail and address (place, email,
phone number etc.), and then disease and what treatment is going on.
2. Doctors will handle patients; one doctor can treat more than 1 patient. Also, Doctors
will have their own details.
3. Different room numbers will also be there for OR, ICU and other departments.
4. Nurses, and ward boys will also be there for patient take care with their details.
5. Based upon the number of days treatment bill will be generated which can be paid
with cash and E-banking.
Queries: Construct and execute SQL queries for the following:
Insert sample values and

i. Calculate the avg value of the cost of treatment for a patient conducted in the hospital
ii. Show the first date when patient visits a hospital
iii. Return the patient with maximum day of stay in the hospital.
iv. Show the total procedures conducted in the hospital for some specific year.

Project 3: Medical equipment Wholesalers management system database


Details to be included in the system
1. Maintain the details of stock.
2. Maintain the details of buyers from which manager has to buy stock
3. Details of customers i.e. name, address, id etc.
4. List of payment paid or pending
5. The stock that is to buy if quantity goes less than a particular amount.
6. Profit calculation for a month.
7. Quantity cannot be sold to a customer if required amount is not present in stock
and date of delivery should be maintained up to which stock can be provided.
Queries: Construct and execute SQL queries for the following:
Insert sample values and
a) Find the top most sold items in the supermarket and their names
b) Find the least sold items for a given year
c) For each item in the stock, compute the average selling price and the average time the property
was on the market.
d) Record the sale of an item that had been listed as being available. This entails the sales price,
the buyer and the date.

Project 4: Medical equipment Importers management system database


Details to be included in the system
1. Maintain the details of stock.
2. Maintain the details of buyers from which maybe either end-users or
wholesaler
3. Details of customers i.e. name, address, id etc.
4. Details of suppliers i.e. name, address, id etc.
5. List of payment paid or pending
6. The stock that is to buy if quantity goes less than a particular amount.
7. Profit calculation for a month.
8. Quantity cannot be sold to a customer if required amount is not present in
stock and date of delivery should be maintained up to which stock can be
provided.
Queries: Construct and execute SQL queries for the following:
Insert sample values and
a) Find the top most sold items and their names
b) Find the least sold items for a given year
c) For each item in the stock, compute the average selling price and the average time the
property was on the market.
d) Record the sale of an item that had been listed as being available. This entails the sales
price, the buyer and the date.
Project 5: Blood donation system database
Details to be included but not limited to: A system in which data(details) of Patient, data
of donor, data of blood bank would be saved and will be interrelation with each other.
• DATA OF PATIENT – Patient Name, Patient Id, Patient Blood Group, Patent
Disease
• DATA OF DONAR – Donar Name, Donar Id, Donar Bood Group, Donar Medical
report, Donar Address, Donar Contact number
• DATA OF BLOOD BANK – Blood Bank Name, Blood Bank Address, Blood
bank Donors name, Blood Bank Contact Number, Blood Bank Address
Queries: Construct and execute SQL queries for the following:
Insert sample values and
a) Find the average estimated number of blood seekers
b) Show the type of the blood by which shortage occurs frequently
c) Show the total amount of blood in the blood bank
d) Show the blood that is donated frequently by doners

Project 6: College record keeping system


Details to be included
1. A college contains many departments which can offer any number of courses.
2. Many instructors can work in a department, but an instructor can work only in one
department.
3. For each department, there is a head, and an instructor can be head of only one department.
4. Each instructor can take any number of courses, and a course can be taken by only one
instructor.
5. A student can enroll for any number of courses and each course can have any number of
students
Queries: Construct and execute SQL queries for the following:
Insert sample values and
a) Find the department with highest number of student and instructor
b) Find the instructor who teaches only one course
c) Show the student with highest/smallest grade from the college
d) show the instructors with highest profile in the college

Assumption: The management of these systems are not very computer literate. You are being
asked to design the database, populate it with sample data, and to write several SQL queries to
demonstrate the system.
Project Requirements

1. Entity-Relationship Model
Construct an Entity-Relationship model representing the conceptual design of the
database.
Include all of the entity sets, primary key for each entity set, and all appropriate
relationship sets.
Include primary keys in the E-R diagram, and show the cardinalities of the
relationships
2. Relational Model
Convert the E-R schema to a relational database schema. Be sure to include
appropriate indices and constraints. Be sure your relational schema conforms to your
E-R schema. If you change your design later in the project don’t forget to update the E-
R schema.

What to submit (both on presentation and via email unless stated otherwise):

1. Your E-R diagram (on paper– no need to create an electronic document, though you are
free to do so).
2. Your relational schema
3. Do NOT submit the contents of all your tables. Just run select count (*) from r, for each
relation r in your schema so that will get a sense of how big your tables are
4. Submit the SQL query and answers
5. Presentation and showing the developed application
Deadline: May 6, 2024

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy