SELECT *, date_start + (day_interval || ' day')::interval AS date_end FROM tariffs WHERE date_start<=date_end SQLSTATE [42703]: Undefined column: 7 ERROR: column "date_end" does not exist
How to fix?
SELECT *, date_start + (day_interval || ' day')::interval AS date_end FROM tariffs WHERE date_start<=date_end SQLSTATE [42703]: Undefined column: 7 ERROR: column "date_end" does not exist
How to fix?
Source: https://ru.stackoverflow.com/questions/772506/
All Articles
whereclause or something? will not work. where is executed earlier than the select instruction, duplicate the expression - teranwhere day_interval>=0- Mike