MINUTES_SUB (Lakehouse v2)
Subtracts a specified number of minutes from a datetime.
Analyze Syntax
Section titled “Analyze Syntax”func.minutes_sub(<datetime>, <n>)Analyze Examples
Section titled “Analyze Examples”func.minutes_sub('2024-01-01 10:45:00', 45)
┌───────────────────────┐│ '2024-01-01 10:00:00' │└───────────────────────┘SQL Syntax
Section titled “SQL Syntax”MINUTES_SUB(<datetime>, <n>)SQL Examples
Section titled “SQL Examples”SELECT MINUTES_SUB('2024-01-01 10:45:00', 45);
┌─────────────────────┐│ 2024-01-01 10:00:00 │└─────────────────────┘