DB Exam

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

Task 1: Sakura Pharma is going to open their inventory and invoice management system.

You are
requested to make a database considering the following features.

1. They would store products. Products are having parameters like –


Id, generic name, brand name, manufacturer, dosage form, pack size, stock quantity, unit buy
price and unit sale price.

The manufacturer are as Square Pharma, Beximco Pharmaceuticals etc. You can see
medex.com.bd to see the data types of a product.

2. They are storing each sales and amount of products sold as invoice. The purchaser history is not
required. Their duty is only to calculate the profit or loss in each transaction.

Now make the database in and insert some data in the tables with query. You have to submit the sql file
and at the same time create an excel file to store the queries you run to build the database and to insert
data.

Task 2: Now you are requested to fetch the following results from the database as the owners needs
these.
1. Show total number of products of the system.
2. Show total number of products of all manufacturers individually of the system.
3. Show total sale of January 2021.
4. Show all data inserted in this month.
5. Update the second product of the system changing its pack size.
6. Show the so far profit of year 2021.
7. Delete all sales of year 2012.

You might also like