sql update max smartries - Mailing list pgsql-general

From Vic Cekvenich
Subject sql update max smartries
Date
Msg-id cl9fud$8od$1@sea.gmane.org
Whole thread Raw
Responses Re: sql update max smartries
List pgsql-general
I am trying to write a sigle command to update the max number from detail.

Something like:
update group set max_msgid=max(c.msgid)
    from group g, content c
    where g.id=c.g_id

So group is master, content is detail. I want group to stroe max(msgid)
from content.

Syntax help plz?
.V

pgsql-general by date:

Previous
From: Bill Harris
Date:
Subject: Re: DB modeler
Next
From: Vic Cekvenich
Date:
Subject: repost(gmane): sql update max smartries