SBX Build v0.1.0
Sunday
12:00:00 PM

Demonstration Environment

This project contains fictional companies, employees, customers, financial records, and business data created solely for software demonstration purposes. Any resemblance to real businesses or individuals is purely coincidental.

SQL Explorer

Query the data. Find the answer.

Relational Databases SQL Queries Data Retrieval

Database Query Audit #004

CLIENT ForgePoint Manufacturing
REQUESTED BY
Phil McData Database Administrator
STATUS ACTIVE

Business Teams Need Faster Access to Customer and Sales Data

ForgePoint Manufacturing stores customer, order, and revenue information across related data tables. Non-technical teams frequently request reports, but each question requires someone to manually locate, filter, and combine records.

Objective: Demonstrate how SQL queries can retrieve meaningful business information from relational data using filtering, grouping, sorting, and joins.

Top Customers by Revenue

READY
SELECT
    customers.customer_name,
    customers.region,
    COUNT(orders.order_id) AS total_orders,
    SUM(orders.revenue) AS total_revenue
FROM customers
JOIN orders
    ON customers.customer_id = orders.customer_id
WHERE orders.order_date BETWEEN '2026-04-01' AND '2026-06-30'
GROUP BY
    customers.customer_name,
    customers.region
ORDER BY total_revenue DESC
LIMIT 5;

Identifies the highest-value customers during Q2.

This query joins customer records with order history, filters the data to Q2, groups revenue by customer, and returns the top accounts by total revenue.

JOIN WHERE GROUP BY ORDER BY LIMIT

Returned Records

5 rows returned
Customer Region Total Orders Total Revenue
ForgePoint Manufacturing East 184 $487,240
Summit Industrial Group North 143 $392,880
Blue Ridge Components South 128 $341,610
Iron Valley Supply West 112 $286,430
Cumberland Equipment Co. East 97 $244,900

How the SQL Query Works

SELECT

Chooses which columns appear in the final report.

JOIN

Connects customers to their related orders.

WHERE

Filters the records to only show Q2 sales activity.

GROUP BY

Combines orders by customer and region.

ORDER BY

Sorts customers from highest revenue to lowest.

LIMIT

Returns only the top five results.

Technical Competencies Demonstrated

SQL Relational Databases JOIN Queries Filtering Grouping Sorting Data Retrieval Database Logic HTML5 CSS3