From: | "Josh Berkus" <josh(at)agliodbs(dot)com> |
---|---|
To: | <webmaster(at)robbyslaughter(dot)com> |
Cc: | pgsql-sql(at)postgresql(dot)org |
Subject: | Re: Simple SQL-syntax |
Date: | 2001-08-20 23:44:55 |
Message-ID: | web-105527@davinci.ethosmedia.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
Folks,
Ooops! Let me correct that example:
UPDATE invoice SET invoice_total = total_of_items
FROM (SELECT invoice_id, sum(item_amount) AS total_of_items
FROM invoice_items) iit
WHERE iit.invoice_id = invoices.id;
Sorry to lead people astray.
-Josh
______AGLIO DATABASE SOLUTIONS___________________________
Josh Berkus
Complete information technology josh(at)agliodbs(dot)com
and data management solutions (415) 565-7293
for law firms, small businesses fax 621-2533
and non-profit organizations. San Francisco
From | Date | Subject | |
---|---|---|---|
Next Message | Joseph Shraibman | 2001-08-21 02:05:40 | exists |
Previous Message | Laurette Cisneros | 2001-08-20 22:57:18 | quick server c question |