SECONDS_SUB (Lakehouse v2)
Subtracts a specified number of seconds from a datetime.
Analyze Syntax
Section titled “Analyze Syntax”func.seconds_sub(<datetime>, <n>)Analyze Examples
Section titled “Analyze Examples”func.seconds_sub('2024-01-01 00:01:30', 90)
┌───────────────────────┐│ '2024-01-01 00:00:00' │└───────────────────────┘SQL Syntax
Section titled “SQL Syntax”SECONDS_SUB(<datetime>, <n>)SQL Examples
Section titled “SQL Examples”SELECT SECONDS_SUB('2024-01-01 00:01:30', 90);
┌─────────────────────┐│ 2024-01-01 00:00:00 │└─────────────────────┘