0% found this document useful (0 votes)
5 views

MySQL Database Design

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)
5 views

MySQL Database Design

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/ 12

Database Design - Group Assignment

Full name: Abil Pandoli & Sreerag Unnikrishnan

Course: COMP5004: Introduction to SQL and DBM

Program: Business Analytics


School: School of Business
College: St. Lawrence College

Instructor: Milton Davila

Date: July 10th, 2024


Context of the Chosen Organization:

TechMart is a leading retailer specializing in a wide range of tech products, catering to


both individual consumers and businesses. With a robust catalog that includes laptops,
smartphones, tablets, wearables, and accessories, TechMart prides itself on offering
cutting-edge technology from various renowned suppliers. The company is committed to
providing exceptional customer service, supported by a dedicated team of employees
who ensure prompt assistance and support for all customer needs. TechMart operates
with a mission to enhance digital lifestyles through innovation and reliable technology
solutions.

EER Diagram
Content and structure of Each Table:

The TechMart database is structured to efficiently manage and organize crucial


business data, ensuring optimal performance and scalability. The database includes
essential entities like Customers, Suppliers, Products, Orders, Order_Items, Reviews,
Employees, Categories, Product_Categories, and Customer_Support_Tickets, each
capturing specific aspects of the business operations. Relationships between tables are
established using foreign keys to maintain data integrity and facilitate complex queries.
Memory allocation for each column is carefully determined based on expected data
types and sizes, optimizing storage and retrieval efficiency, all while keeping future
modifications (maintenance) in mind. This design supports comprehensive reporting
and analysis, enhancing decision-making and operational efficiency.
Report Requirements (Additional requirements added)

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.

3. Business Question: How many orders were placed by each customer?


Explanation: This question quantifies the number of orders placed by individual
customers. It helps in understanding customer behavior, loyalty, and potential for
repeat business. This information is crucial for customer segmentation and
personalized marketing efforts.

4. Business Question: What is the average quantity of products ordered per


order?
Explanation: This question calculates the average number of products included
in each order. It provides insights into purchasing patterns and order fulfillment
efficiency, guiding inventory management and logistics strategies.

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.

8. Business Question: What is the average rating given by customers in each


product category?
Explanation: This question computes the average rating provided by customers
for products within each category. It provides insights into customer satisfaction
levels across different product types, influencing marketing strategies and
product development.

9. Business Question: How many products are out of stock?


Explanation: This question counts the number of products that are currently
unavailable for sale due to insufficient stock. It guides inventory management
practices, and procurement decisions, and helps in minimizing stockouts.

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.

11. Business Question: Concatenate customer first and last names


Explanation: Combine the first name and last name of customers into a single
string
Queries and Results:

1.

2.
3.

4.
5.

6.
7.

8.
9.

10.
11.

Thank you, END…

You might also like