update t1 set amount = sum(b.amount) from ts b where a.id=b.id On Thursday 18 January 2001 09:54, Carolyn Wong wrote: > I'd like to know what's the correct SQL statement to do the following: > > update t1 a > set a.amount = sum(b.amount) > from t2 b > where a.id = b.id
- [SQL] update help Carolyn Wong
- [SQL] Re: update help Tubagus Nizomi
- [SQL] Re: update help Carolyn Lu Wong
- Re: [SQL] update help Tom Lane
- [SQL] Re: update help Carolyn Lu Wong
- [SQL] Re: update help Tom Lane
- Re: [SQL] update help Josh Berkus
- [SQL] Update Help [EMAIL PROTECTED]
- Re: [SQL] Update Help Oliver Elphick
- Re: [SQL] Update Help Peter Eisentraut