Hello,
I need to update three fields of Table_A with the two fields of Table_B and with one constant 'M'.
I have the following query to update three fields in table_A:
UPDATE TABLE_A
SET CREATE_TIMESTAMP=(SELECT MAX(CREATE_TIMESTAMP) FROM TABLE_B
SET UPDATE_TIMESTAMP=(SELECT MAX(UPDATE_TIMESTAMP) FROM TABLE_B
SET DATA_DATE=(SELECT MAX(DATA_DATE) FROM TABLE_B
SET ACTION_CODE='M';
I am getting follwoing errors:
" something needs to be between ( and SLECET "
AND
"Aggregation is not allowed in this update"
Any suggestions ?
thanks
I need to update three fields of Table_A with the two fields of Table_B and with one constant 'M'.
I have the following query to update three fields in table_A:
UPDATE TABLE_A
SET CREATE_TIMESTAMP=(SELECT MAX(CREATE_TIMESTAMP) FROM TABLE_B
SET UPDATE_TIMESTAMP=(SELECT MAX(UPDATE_TIMESTAMP) FROM TABLE_B
SET DATA_DATE=(SELECT MAX(DATA_DATE) FROM TABLE_B
SET ACTION_CODE='M';
I am getting follwoing errors:
" something needs to be between ( and SLECET "
AND
"Aggregation is not allowed in this update"
Any suggestions ?
thanks