pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Karyn Keatley <K.Keatley@aepona.com>
To: pgsql-sql@postgresql.org
Subject: SQL Query using time
Date: Thu, 07 Dec 2000 16:59:53 +0000
Message-ID: <3A2FC209.E1EA54D2@aepona.com> (raw)

Hi,
I am attempting to write a sql query that compares times on a 24 hr
clock
eg
09:00<16:30 and  21:00>16:30

09:00 is the start time and 16:30 is the end time. The problem is that
if the start time is 23:58 and the end time is 00:30 (next day) is there
any way to carry out this comparison without introducing date.

Is it possible to carry out the comparison in the following manner
select name from table where 00:12 is between 23:58 and 00:30

thanks karyn

Attachments:

K.Keatley.vcf (text/x-vcard, 217B) download begin:vcard n:Keatley;Karyn x-mozilla-html:FALSE org:<IMG SRC="http://www.aepona.com/logo/aepona-vcard.gif"> adr:;;;;;; version:2.1 email;internet:k.keatley@aepona.com x-mozilla-cpt:;-15456 fn:Karyn Keatley end:vcard

view thread (2+ messages)  latest in thread

Message-ID: <3A2FC209.E1EA54D2@aepona.com>
Permalink:  ../3A2FC209.E1EA54D2@aepona.com/
Also on:    postgresql.org/message-id/3A2FC209.E1EA54D2@aepona.com

 · 

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 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: K.Keatley@aepona.com
  Subject: Re: SQL Query using time
  In-Reply-To: <3A2FC209.E1EA54D2@aepona.com>
  References: <3A2FC209.E1EA54D2@aepona.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