Well this question is nothing like the first question, but if you're asking how to move a date from a memo field to the TnxDate, this is an example:
SELECT RefNumber, TxnDate, Memo FROM Invoice where RefNumber = '87'
Note the Memo has December 30 while the transaction date is December 23. Using this update statement I will move the Memo date into the TxnDate for this Invoice:
Update Invoice Set TxnDate = {fn CONVERT(Memo, SQL_TYPE_DATE)} where RefNumber = '87'
Now when I rerun the query, the tranaction date is now December 30. I used the verify tag to reload the new values into the QODBC optimizer.
SELECT RefNumber, TxnDate, Memo FROM Invoice verify where RefNumber = '87'
|