| From: | Greg Stark <gsstark(at)mit(dot)edu> |
|---|---|
| To: | "Viorel Dragomir" <bc(at)vio(dot)ro> |
| Cc: | "Greg Stark" <gsstark(at)mit(dot)edu>, <pgsql-sql(at)postgresql(dot)org> |
| Subject: | Re: summing tables |
| Date: | 2003-07-15 15:38:21 |
| Message-ID: | 87u19nls0i.fsf@stark.dyndns.tv |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-sql |
"Viorel Dragomir" <bc(at)vio(dot)ro> writes:
> Anyway, in real life this update modifies only one row with a value wich is
> diff of null. It was really handy if it was specified the option ORDER for
> the update command.
Are you hoping to produce a running total? That's very difficult in standard
SQL. That would be very different from the query you asked for.
Running totals, ranking, lead/lag, are all things that are very difficult to
do in standard SQL. They don't fit in the unordered set model that SQL follows
so doing them without special non-standard functions is very hard and
inefficient.
The functions to do them don't fit well within the SQL universe either, which
might be why they don't exist yet in postgres.
--
greg
| From | Date | Subject | |
|---|---|---|---|
| Next Message | greg | 2003-07-15 15:40:52 | Re: Count dates distinct within an interval |
| Previous Message | Viorel Dragomir | 2003-07-15 15:32:07 | Re: summing tables |