repost(gmane): sql update max smartries

From: Vic Cekvenich <vin(at)friendVU(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: repost(gmane): sql update max smartries
Date: 2004-10-21 23:52:21
Message-ID: cl9i5q$cut$1@sea.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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
>

Browse pgsql-general by date

  From Date Subject
Next Message Dennis Gearon 2004-10-22 00:23:31 correct example of a functional index usage?
Previous Message Tom Lane 2004-10-21 23:33:11 Re: Row versioning