WEEKS_SUB (Lakehouse v2)
Subtracts a specified number of weeks from a date.
Analyze Syntax
Section titled “Analyze Syntax”func.weeks_sub(<date>, <n>)Analyze Examples
Section titled “Analyze Examples”func.weeks_sub('2024-01-15', 2)
┌──────────────┐│ '2024-01-01' │└──────────────┘SQL Syntax
Section titled “SQL Syntax”WEEKS_SUB(<date>, <n>)SQL Examples
Section titled “SQL Examples”SELECT WEEKS_SUB('2024-01-15', 2);
┌────────────┐│ 2024-01-01 │└────────────┘