Differences
This shows you the differences between two versions of the page.
— | database:mssql:sum_datetime_diff [2019/10/31 09:04] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Sum datetime difference in MSSQL ====== | ||
+ | Get the SUM of seconds: | ||
+ | |||
+ | < | ||
+ | |||
+ | Turn that into a datetime object: | ||
+ | |||
+ | < | ||
+ | |||
+ | Or as 1 query: | ||
+ | |||
+ | < | ||
+ | |||
+ | |||