I have tried this syntax in business objects (a reporting tool) with Teradata syntax since we are trying to access data.
The date field is stored as 20030502.
I have written this
Cast(substr(IVR.Local_Order_Entry_IVR.DATES,1,4) || '-' || substr(IVR.Local_Order_Entry_IVR.DATES,5,2) || '-' || substr(IVR.Local_Order_Entry_IVR.DATES,7,2) As Date)
But it comes back with a syntax error: Invalid date supplied for DATES. Any suggestions?
The date field is stored as 20030502.
I have written this
Cast(substr(IVR.Local_Order_Entry_IVR.DATES,1,4) || '-' || substr(IVR.Local_Order_Entry_IVR.DATES,5,2) || '-' || substr(IVR.Local_Order_Entry_IVR.DATES,7,2) As Date)
But it comes back with a syntax error: Invalid date supplied for DATES. Any suggestions?