When I execute following query, it returned errors
SELECT
type1,
type2
FROM
table
WHERE
date >= '2021-05-22' - interval '22 day'
Invalid operation: invalid input syntax for type interval: "2021-05-22"
I'd like to set like '2021-05-22' in hard coding style. Where is the wrong point of this ?
If someone has any insight, please let me know.
Thanks