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

Concepcion Holy Cross College, Inc

COLLEGE OF COMPUTER STUDIES

Case Study
in
Advance
Database
Submitted By:
Bryan G. Devota

Submitted To:
Sir. Arjay Balberan

Date:
November 7, 2023
Table of Contents
List of Figures...............................................................................................................................................3
A. Definition of the methodology............................................................................................................4
B. Methodology.......................................................................................................................................5
B.1 Problem.......................................................................................................................................5
B.2 Process of the Methodology........................................................................................................5
B.3 Explanation..................................................................................................................................5
C. References...........................................................................................................................................6
List of Figures
Figure 1. The Table......................................................................................................................................4
A. Definition of the methodology
The topic was given was to find a store that needs a database in order for
the store to operate properly and allocate all of its resources equally and
precisely. The plan to the table shall be carried out using this way:

Figure 1. The Table

SQL Functions to be used:

Keyword Definition

1. MIN() The MIN() function returns the minimum value of a column.

2. MAX() The MAX() function returns the maximum value of a column.

3. AVG() The AVG() function is used to calculate the average of numeric


values in a column.
4. SUM() The SUM() function is used to calculate the cumulative sum of
numeric values in a column.
5. COUNT() The COUNT() function returns the number of records returned
by a query.

B. Methodology
B.1 Problem
Dutado – Guzman Superstore located in Purok 3, Barangay San Francisco,
Concepcion, Tarlac runs a store business. However the store faces a problem in
product stocks they don’t know when they will run out of supplies. So they need a
database to store all the products ordered and to be sold, for them to be prepared if
they will restock for supplies.

B.2 Process of the Methodology


1. First you need to create a database.
2. Then a table named “Products” containing product_id and other product
information.

3. Then after the creation of the database input a certain products that the
store sells.

4. Then display all of the following inputted products.


B.3 Explanation
The following operations shows on how to manage and access the
database in several ways.
1. The min() function will show the most minimum price from the products
table.

2. The max() function will display the most maximum price from the products
table.

3. The AVG() function will display the average of all product’s prices by the
sum all of their prices divided by the number of records.

4. The SUM() function will get the total of all the prices in the products table.
5. The COUNT() function will count all the records that existed in the
products table.

C. References
For SQL Function - Definitions:

https://www.programiz.com/sql/

You might also like