pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: javier garcia - CEBAS <rn001@cebas.csic.es>
To: pgsql-sql@postgresql.org
Subject: date question
Date: Fri, 13 Jun 2003 13:44:09 +0200
Message-ID: <200306131130.h5DBUiI06008@natura.cebas.csic.es> (raw)

Hi;
I've got a table in the way:

 year | month | day | est7237 | est7238 | est7239 | est7250
------+-------+-----+---------+---------+---------+---------
 2002 |     9 |   1 |         |         |         |
 2002 |     9 |   2 |         |         |         |
 2002 |     9 |   3 |         |         |         |
...
This table is:
murciadb=# \d series_lluvia_completas
Table "series_lluvia_completas"
 Column  |  Type   | Modifiers
---------+---------+-----------
 year    | integer |
 month   | integer |
 day     | integer |
 est7237 | real    |
 est7238 | real    |
 est7239 | real    |
 est7250 | real    |

And I've got another related tables with a date field. I need to compare the 
dates field in the other tables with "year", "month", "day" in this table.

Is there a way to create a table from this table, directly in Postgres in 
which a date field is created based in the values of "year", "month", "day" 
in this table?

Thanks and regards

Javier



view thread (15+ messages)  latest in thread

Message-ID: <200306131130.h5DBUiI06008@natura.cebas.csic.es>
Permalink:  ../200306131130.h5DBUiI06008@natura.cebas.csic.es/
Also on:    postgresql.org/message-id/200306131130.h5DBUiI06008@natura.cebas.csic.es

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: rn001@cebas.csic.es
  Subject: Re: date question
  In-Reply-To: <200306131130.h5DBUiI06008@natura.cebas.csic.es>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox