Re: Calculating Percentages - Mailing list pgsql-sql

From Josh Berkus
Subject Re: Calculating Percentages
Date
Msg-id 200305150842.33629.josh@agliodbs.com
Whole thread Raw
In response to Re: Calculating Percentages  (Christoph Haller <ch@rodos.fzk.de>)
List 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


pgsql-sql by date:

Previous
From: Richard Huxton
Date:
Subject: Re: comparing 2 queries
Next
From: Peter Eisentraut
Date:
Subject: Re: Using psql to insert character codes