Counting Weekends between Two Dates in PostgreSQL
I found myself the problem of counting the occurrence of specific "days of the week" between two dates; for, of course, generating features for a predictive analysis task. For example, the number of Fridays and Saturdays between 2019-01-01 and 2019-0...
Mar 22, 20193 min read37