Tags / date-arithmetic
Creating Weekly Cost-per-Sales Table Grouped by Age and Geo Using Conditional Aggregation in PostgreSQL
Understanding the Power of Datetime Values in SQL: A Comprehensive Guide to Inferring Duration from Consecutive Rows
Calculating Time Intervals with PostgreSQL's date_part Function