Re: update inner join
Camel case table & column names will bite you if the db ever finds itself on Linux. Usually best to stick to lower case names.
Is this what you mean?
update temprevenue as t
join (
select servno, sum (charge) as chargesum
from records
where left(recdate,4) = '2017'
group by servno
) as r using( servno )
set t.revenue = r.chargesum;
Subject
Written By
Posted
Re: update inner join
March 22, 2018 11:34AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.