Thanks for the prompt reply.
No, that query only returns 1 single value (1 row, 1 column).
And I forgot to say that ENROLL_DATE is not a db2 date but a varchar type.
So I can't try this
Code:
SELECT ENROLL_DATE - 5 DAYS
FROM RECORDS.ENROLL_RECORDS
WHERE FEE_RECEIPT_NO=5002
But I am sure that the string that
Code:
SELECT ENROLL_DATE - 5 DAYS
FROM RECORDS.ENROLL_RECORDS
WHERE FEE_RECEIPT_NO=5002
returns is in db2 date format. It's just not stored as a db2 date in the table its retrieved from.
Now can u guide me plz. ?