It is important to fill missing date range while plotting data. Here’s how to fill missing dates in MySQL by filling missing rows and sequence gaps, for daily sales report.
Author: Sreeram Sreenivasan
How To Calculate Month over Month Growth in PostgreSQL
Month over Month Growth is a useful KPI metric. Here’s how to calculate month over month growth in PostgreSQL.
SQL Query to Compare Product Sales By Month
Sometimes you may need to compare monthly sales per product. Here’s an SQL query to compare product sales by month.
How to Calculate Total Sales Per Month in MySQL?
Monthly sales is a useful KPI metric to track for every business. Here’s how to calculate total sales per month in MySQL.
How to Calculate Retention Rate in SQL?
Retention Rate is percent of users who return to use a product/service over a period of time. Here’s how to calculate retention rate in SQL. Calculate retention rate in MySQL, PostgreSQL.
How to Create Pivot Table in PostgreSQL
Pivot table & Crosstab makes in easy to analyze data. Here’s how to create pivot table in PostgreSQL.
How to Create Dynamic Pivot Tables in MySQL
Pivot tables make it easy to analyze large volumes of data. Here’s how to create dynamic pivot tables in MySQL.
How to Calculate Running Total in Redshift
Cumulative Total allows you to track running totals over time. Here’s how to calculate running total in Redshift.
How to Display Row Values as Columns in MySQL
If you need to transpose rows as columns or pivot table, then you need to do it via SQL query. Here’s how to display row values as columns in MySQL.
How to Calculate Moving Average in Redshift
Rolling Average helps smoothen numerical trends in data. Here’s how to calculate moving average in Redshift using SQL query.