MySQL Database Design
MySQL Database Design
EER Diagram
Content and structure of Each Table:
The Report Requirements section outlines specific queries and data analysis tasks
necessary to demonstrate the functionality and utility of the database. It includes
structured SQL queries utilizing JOIN operations to integrate related data from multiple
tables, UNION operations for combining distinct datasets, and aggregate functions
(SUM, MIN, MAX, COUNT, AVG) to derive statistical insights. Additionally, it mandates
the use of SQL functions for data manipulation and subqueries to handle nested queries
for complex data retrieval. The section ensures comprehensive coverage of database
functionalities essential for effective decision-making and operational insights within
TechMart's business context.
1. Business Question: Which products have received the highest and lowest
ratings?
Explanation: This question aims to identify products that have garnered the
highest and lowest ratings from customer reviews. It helps gauge customer
satisfaction and product popularity, influencing marketing strategies and
inventory management.
2. Business Question: What is the total revenue generated from each product
category?
Explanation: This question seeks to understand how much revenue each
product category contributes to the overall sales. It provides insights into product
performance and customer preferences, aiding in strategic decisions related to
product assortment and pricing.
5. Business Question: Which customers have submitted the most support tickets?
Explanation: identify customers who have submitted the highest number of
support tickets. This helps in understanding customer support needs and
possibly addressing recurring issues or providing special attention to frequent
customers.
6. Business Question: What is the total salary expense for each position?
Explanation: This question examines the total expenditure on salaries for
different positions within the organization. It helps in budget planning, resource
allocation, and ensuring competitive compensation packages to attract and retain
talent.
7. Business Question: Which supplier has the highest total stock quantity of
products?
Explanation: This question identifies the supplier with the largest inventory
volume supplied to TechMart. It assists in supplier relationship management,
inventory optimization, and ensuring product availability.
10. Business Question: Retrieve order details with customer information and
product details
Explanation: This is to designed to fetch comprehensive information about
orders placed in the TechMart database, including details about the customers
who placed the orders and the products that were ordered.
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.