Re: how to cache subtotals -- with subselect? - Mailing list pgsql-general

From Will Trillich
Subject Re: how to cache subtotals -- with subselect?
Date
Msg-id 20030303075821.GB30040@mail.serensoft.com
Whole thread Raw
In response to Re: how to cache subtotals -- with subselect?  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
List pgsql-general
On Sun, Mar 02, 2003 at 11:17:45PM -0800, Stephan Szabo wrote:
> On Mon, 3 Mar 2003, Will Trillich wrote:
> > db=#  update _person set
> > db-#  been_client = (
> > db(#     select count(*) from team t join involv_v v on (v.id=t.involv_v)
> > db(#     where v.name='Client' and t.person=person.id
> > db(#  );
> > NOTICE:  Adding missing FROM-clause entry in subquery for table "person"
> > UPDATE 3
> >
> But the inner doesn't have a reference to _person, it has a reference to
> person, was it intentional to use different tables in those two places?

<blush>
um, no. sure wasn't.
</blush>

i'll go away now. (thanks for the eyeballs!)

--
There are 10 kinds of people:
ones that get binary, and ones that don't.

will@serensoft.com
http://sourceforge.net/projects/newbiedoc -- we need your brain!
http://www.dontUthink.com/ -- your brain needs us!

Looking for a firewall? Do you think smoothwall sucks? You're
probably right... Try the folks at http://clarkconnect.org/ !

pgsql-general by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: how to cache subtotals -- with subselect?
Next
From: Francois Suter
Date:
Subject: Problems receiving posts from the ML