Запрос:
SELECT
CAST ('2010-12-13' AS TIMESTAMP) - CAST ('2007-01-01' AS TIMESTAMP) <= INTERVAL '4 years',
CAST ('2010-12-13' AS TIMESTAMP) <= CAST ('2007-01-01' AS TIMESTAMP) + INTERVAL '4 years',
CAST ('2010-12-13' AS TIMESTAMP) - CAST ('2008-01-01' AS TIMESTAMP) <= INTERVAL '3 years',
CAST ('2010-12-13' AS TIMESTAMP) <= CAST ('2008-01-01' AS TIMESTAMP) + INTERVAL '3 years'
Результат: false true true true
Почему 1-й столбец CAST ('2010-12-13' AS TIMESTAMP) - CAST ('2007-01- 01 'AS TIMESTAMP) <= ИНТЕРВАЛ' 4 года 'возвращает FALSE ?? </p>