Re: update help - Mailing list pgsql-sql

From Tubagus Nizomi
Subject Re: update help
Date
Msg-id 01011810173404.01195@nizomi
Whole thread Raw
In response to update help  (Carolyn Wong <carolyn@greatpacific.com.au>)
List pgsql-sql
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


pgsql-sql by date:

Previous
From: Carolyn Wong
Date:
Subject: update help
Next
From: Tom Lane
Date:
Subject: Re: update help