From dc1c1de449050af16f93d9780ab00dd146bcc80b Mon Sep 17 00:00:00 2001 From: david-cortes Date: Tue, 10 Oct 2023 11:08:32 +0200 Subject: [PATCH] Update date.md --- docs/sql/functions/date.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/sql/functions/date.md b/docs/sql/functions/date.md index c03aef60ce0..bace1c07f9c 100644 --- a/docs/sql/functions/date.md +++ b/docs/sql/functions/date.md @@ -15,7 +15,7 @@ The table below shows the available mathematical operators for `DATE` types. | `+` | addition of an `INTERVAL` | `DATE '1992-03-22' + INTERVAL 5 DAY` | 1992-03-27 | | `+` | addition of a variable `INTERVAL` | `SELECT DATE '1992-03-22' + INTERVAL 1 DAY * d.days FROM (VALUES (5), (11)) AS d(days)` |1992-03-27 1992-04-02 | | `-` | subtraction of `DATE`s | `DATE '1992-03-27' - DATE '1992-03-22'` | 5 | -| `-` | subtraction of an `INTERVAL` | `DATE '1992-03-27' - INTERVAL 5 DAY'` | 1992-03-22 | +| `-` | subtraction of an `INTERVAL` | `DATE '1992-03-27' - INTERVAL 5 DAY` | 1992-03-22 | | `-` | subtraction of a variable `INTERVAL` | `SELECT DATE '1992-03-27' - INTERVAL 1 DAY * d.days FROM (VALUES (5), (11)) AS d(days)` |1992-03-22 1992-03-16 | Adding to or subtracting from [infinite values](../../sql/data_types/date#special-values) produces the same infinite value.