Re: Calculating Percentages

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: Calculating Percentages
Дата
Msg-id 200305150842.33629.josh@agliodbs.com
обсуждение исходный текст
Ответ на Re: Calculating Percentages  (Christoph Haller <ch@rodos.fzk.de>)
Список 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 по дате отправления:

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: comparing 2 queries
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Using psql to insert character codes