Re: Calculating Percentages

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: Christoph Haller <ch(at)rodos(dot)fzk(dot)de>, pgsql-sql(at)postgresql(dot)org
Cc: dsiegal(at)brave(dot)cs(dot)uml(dot)edu
Subject: Re: Calculating Percentages
Date: 2003-05-15 15:42:33
Message-ID: 200305150842.33629.josh@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Chris,

> You'll have to GROUP BY nationality, total_members

Oops. Problem with posting untested SQL ...

> > > would this repeatedly execute the inner query over and over?
> >
> > No, it'd do it just once, because the sub-select has no dependency on
> > the outer select. (If the sub-select used any variables from the

That's great, Tom. Yet another place where we've surpassed MS SQL Server in
query implementation.

--
Josh Berkus
Aglio Database Solutions
San Francisco

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Peter Eisentraut 2003-05-15 15:52:01 Re: Using psql to insert character codes
Previous Message Richard Huxton 2003-05-15 14:56:15 Re: comparing 2 queries