Skip to content

SQL: Implement subtraction of DATEs #37692

@matriv

Description

@matriv

Implement subtraction of dates in number of days, similar to:

postgres=# select '2001-02-02'::date - '2000-01-01'::date as diff;
 diff
------
  398
(1 row)

Consider using a new function like DATE_DIFF instead of - operator, or maybe support both.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions