SQL Quick Tip: Guarantee Rows for Every Date in Your Report
When you are reporting on metrics over time, sometimes your data will have missing entries on certain days. In these cases, it’s useful to be able to ensure that every date shows up in your report, regardless of whether or not there is a metric in the dataset for that date. Let’s use daily user logins to a website for a reporting metric to illustrate how you solve this problem. ...