Range queries with multiple tables

From: Mag Gam <magawake(at)gmail(dot)com>
To: PostgreSQL List - Novice <pgsql-novice(at)postgresql(dot)org>
Subject: Range queries with multiple tables
Date: 2009-05-11 12:11:48
Message-ID: 1cbd6f830905110511m5b98d93et528f9b72a5b997c2@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

I have 5 tables like named this:

2009.01
2009.02
2009.03
2009.04
2009.05

Each table has a columns like this:

( id integer,
ts timestamp,
value char(50)
);

If I would like to search from 2009.01 to 2009.04 is it possible to
build a query like that? I was thinking if there is a clever VIEW I
can create that would include all 5 tables as 1 table.

Any thoughts or ideas?

TIA

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Adam Ruth 2009-05-11 12:36:49 Re: Range queries with multiple tables
Previous Message Devrim GÜNDÜZ 2009-05-11 10:49:46 Re: Postfix with PostgreSQL