Analyzing Sales Data using SQL! Converting raw data into meaningful business insights is a key pa...Analyzing Sales Data using SQL! Converting raw data into meaningful business insights is a key pa...
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started
Analyzing Sales Data using SQL! Converting raw data into meaningful business insights is a key part of Data Analytics. Today, I wrote a SQL query to calculate key sales and profitability metrics. Key Metrics Covered: Gross Sales: Quantity * Price Discount Amount: (Quantity * Price * Discount / 100) Net Sales: Gross Sales - Discount Amount Profit: Net Sales - Total Cost Profit Margin (%): (Profit / Net Sales) * 100 By joining the order_items and products tables, I extracted clear financial insights that help drive better business decisions.
Post image
Back to feed
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started