Re: Calculation of per Capita on-the-fly - problems with SQL syntax

Поиск
Список
Период
Сортировка
От Michael Glaesemann
Тема Re: Calculation of per Capita on-the-fly - problems with SQL syntax
Дата
Msg-id 675A11F0-2A19-4A85-A27A-6E5CF1291892@seespotcode.net
обсуждение исходный текст
Ответ на Re: Calculation of per Capita on-the-fly - problems with SQL syntax  (Stefan Schwarzer <stefan.schwarzer@grid.unep.ch>)
Список pgsql-general
On Oct 16, 2007, at 8:09 , Stefan Schwarzer wrote:

> That is, for one country it can be 1990, for another 1992, for a
> third 1995. As the actual year is not important (and not always
> defined), one tries to use this kind of common describer: various.

When you don't have the year, put them in another table: they're not
the type of data as the rest. If you do, include the year just like
normal and modify the query so it's not joining on the year. If you
need to include both with years and without, write your query
appropriately to include rows from both tables.

Michael Glaesemann
grzm seespotcode net



В списке pgsql-general по дате отправления:

Предыдущее
От: Stefan Schwarzer
Дата:
Сообщение: Re: Calculation of per Capita on-the-fly - problems with SQL syntax
Следующее
От: hubert depesz lubaczewski
Дата:
Сообщение: improvement proposition