DAYS_SUB (Lakehouse v2)
Subtracts a specified number of days from a date.
Analyze Syntax
Section titled “Analyze Syntax”func.days_sub(<date>, <n>)Analyze Examples
Section titled “Analyze Examples”func.days_sub('2024-01-31', 30)
┌──────────────┐│ '2024-01-01' │└──────────────┘SQL Syntax
Section titled “SQL Syntax”DAYS_SUB(<date>, <n>)SQL Examples
Section titled “SQL Examples”SELECT DAYS_SUB('2024-01-31', 30);
┌────────────┐│ 2024-01-01 │└────────────┘