Temporal Units

Поиск
Список
Период
Сортировка
От Rich Shepard
Тема Temporal Units
Дата
Msg-id Pine.LNX.4.64.0704281434570.6316@salmo.appl-ecosys.com
обсуждение исходный текст
Ответы Re: Temporal Units
Re: Temporal Units
Список pgsql-general
   I would like to store a temporal frequency as NUMERIC, without units, and
have the application's front end (or middleware) transform the number to the
appropriate interval name. I'm having difficulties figuring out how to do
this.

   For example, an event might occur once per work shift, day, week,
fortnight, or month. For comparison and checking purposes, it would be
easier to store a single frequency (e.g., days), but have the users enter
and display using other units (for example, a radiobox that presents the
units as days or other times).

   Has this been done before? Or, do I need two columns (frequency and name)
and do the conversion to a common time unit behind the scenes?

Rich

--
Richard B. Shepard, Ph.D.               |    The Environmental Permitting
Applied Ecosystem Services, Inc.        |          Accelerator(TM)
<http://www.appl-ecosys.com>     Voice: 503-667-4517      Fax: 503-667-8863

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

Предыдущее
От: Kris Jurka
Дата:
Сообщение: Re: "Protocol error. Session setup failed" (PostgreSQL 8.3devel/postgresql-8.3dev-600.jdbc3)
Следующее
От: "Alexander Staubo"
Дата:
Сообщение: Re: Temporal Units