MySQL Forums
Forum List  »  Newbie

Will this Query Work infinetly, or it break
Posted by: mohammad azharuddin
Date: September 18, 2024 04:46AM

update rptprogressiveoutwaneftrpt a inner join (select sum(amount) as balamount ,max(cast(id as unsigned)) as mid from rptprogressiveoutwaneftrpt group by transdate ) b on a.id=b.mid set a.balanceamount=b.balamount where transdate>=?


joining on same table having same date , sum all amount and set to date having max id

will this query work or it has a chance to break, some value may update or some may not ?

Options: ReplyQuote


Subject
Written By
Posted
Will this Query Work infinetly, or it break
September 18, 2024 04:46AM


Sorry, only registered users may post in this forum.

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.