Does anybody know why this query fails?
I get the error 'operation must use an updateable query' however if I execute without the SELECT command, then it works, and the select command is returning only 1 item.
This should work! I am at a loss.
Code:
PARAMETERS custid Long
UPDATE CUSTOMERS
SET TOTAL =
(SELECT SUM(DETAILS.CHARGE) FROM DETAILS WHERE DETAILS.CUSTOMER = custid)
WHERE CUSTOMERS.ID = custid;
I get the error 'operation must use an updateable query' however if I execute without the SELECT command, then it works, and the select command is returning only 1 item.
This should work! I am at a loss.