skip to Main Content

POSTGRESQL Error: date format not recognized

SELECT v.accounting_date, v.payment_date FROM (SELECT doc.document_id, max(CASE WHEN doc.name='accountingDate' THEN doc.value END) AS accounting_date, max(CASE WHEN doc.name='paymentDate' THEN doc.value END) AS payment_date FROM go_appr_doc_variables doc GROUP BY doc.document_id) v WHERE TO_CHAR(TO_DATE(v.payment_date, 'YYYYMMDD')+8,'yyyymmdd') >= TO_CHAR(NOW(),'yyyymmdd') v.accounting_date and payment_date values format is…

VIEW QUESTION
Back To Top
Search