From: Brian C. Doyle <bcdoyle@mindspring.com>
To: pgsql-sql@postgresql.org
Subject: Complex Query Help
Date: Wed, 21 Mar 2001 08:07:56 -0500
Message-ID: <5.0.2.1.2.20010321080320.02f98360@pop.internal.mindspring.com> (raw)
Hello all,
I have a table of work shifts. It has
Table "teams"
Attribute | Type | Modifier
------------+---------------+----------
team_id | varchar(50) |
team_name | varchar(100) |
location | varchar(100) |
department | varchar(100) |
shift | varchar(100) |
start_time | numeric(30,6) |
end_time | numeric(30,6) |
mon | boolean |
tue | boolean |
wen | boolean |
thu | boolean |
fri | boolean |
sat | boolean |
sun | boolean |
start_day | char(3) |
end_day | char(3) |
What I need to be able to do is select team_name where team works between a
time span ie teams that work between 730 and 1600 how would I do this????
What type of field should i sue for start_time and end_time?
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: bcdoyle@mindspring.com
Subject: Re: Complex Query Help
In-Reply-To: <5.0.2.1.2.20010321080320.02f98360@pop.internal.mindspring.com>
References: <5.0.2.1.2.20010321080320.02f98360@pop.internal.mindspring.com>
* 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