Hi, if you just want to store the value of cost.amount into print.label do:
Code:
UPDATE print SET label =
(SELECT amount FROM cost WHERE cost.key = print.key)
WHERE key = ...
If you want to perform a calculation with both the print.label and cost.amount and you work with IDS 9.x or higher do an explicit cast, like:
Code:
SELECT cost.amount + print.label::smallint
FROM print, cost
WHERE ...
Regards