Postgresql – Make SQL Query With Multiple Date Ranges
I have a table that keeps track of runs. It has the following columns: ID distance run_time run_date 1 10 01:35:00 2023-12-10 2 10 01:48:00 2023-12-16 3 10 01:25:00 2023-12-17 4 10 01:41:00 2023-12-23 I want to calculate the average…