dbTalk Databases Forums  

Re: repost(gmane): sql update max smartries

comp.databases.postgresql.general comp.databases.postgresql.general


Discuss Re: repost(gmane): sql update max smartries in the comp.databases.postgresql.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Vic Cekvenich
 
Posts: n/a

Default Re: repost(gmane): sql update max smartries - 10-21-2004 , 07:33 PM






Vic Cekvenich wrote:

Quote:
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




---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.