Average Time Interval Between A Start And End Time
Looking to get the average time interval between a start and an end time (ex: Given the start and end times for runners in a race, find the average time it takes for a runner to complete the race)? Find exactly how to write this up in each flavor of SQL below!
Redshift
Postgres
SQL Server
MySQL
BigQuery (Standard SQL)
SQL Server solution inspired by thisĀ post
0 comments