Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
ODBC date math
Hi,
I have a custom record that contains a timestamp field called publish_date. I want to find the difference between sysdate and publish_date and I have been unable to perform this operation through the odbc driver.
Option 1) Use systimestamp
select systimestamp - publish_date from myrecordtable
ERROR: [DataDirect][ODBC OpenAccess SDK driver][OpenAccess SDK
SQL Engine]Column:systimestamp not found.[10125]
Option 2) Cast sysdate and publish_date to date
select cast(sysdate as date) - cast(publish_date as date) from myrecordtable
ERROR: [DataDirect][ODBC OpenAccess SDK driver][OpenAccess SDK
SQL Engine]Incompatible value type specified for column:CAST(sysdate())-CAST(publish_date).