LevelThought
MIS
Not able to use the following SQL pass-through query within 2003 Microsoft Access to extract data from an Oracle 8.1.7 database!
SELECT distinct A1.ACCOUNT_ID, A2.ACCOUNT_NO, trunc(A2.DATE_INSERTED)
FROM ACCOUNT_PAYOR A1, ACCOUNT_PAYMENT_DETAIL A2
WHERE A1.ACCOUNT_NO = A2.ACCOUNT_NO
AND A1.ACCOUNT_ID = 'C24'
The error that I receive is "Invalid precision for decimal data type." This appears to be related to the use of "trunc" on the "date inserted" field!
Any idea as to the solution to this problem?
Thanks in advance.
SELECT distinct A1.ACCOUNT_ID, A2.ACCOUNT_NO, trunc(A2.DATE_INSERTED)
FROM ACCOUNT_PAYOR A1, ACCOUNT_PAYMENT_DETAIL A2
WHERE A1.ACCOUNT_NO = A2.ACCOUNT_NO
AND A1.ACCOUNT_ID = 'C24'
The error that I receive is "Invalid precision for decimal data type." This appears to be related to the use of "trunc" on the "date inserted" field!
Any idea as to the solution to this problem?
Thanks in advance.