pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: P A <patkins2474@yahoo.com>
To: pete@tkins.com
Cc: pgsql-sql@postgresql.org
Subject: Can someone tell me why this statement is failing?
Date: Mon, 19 Apr 2004 13:31:50 -0700 (PDT)
Message-ID: <20040419203150.77559.qmail@web41112.mail.yahoo.com> (raw)

Can anyone tell me why this SQL statement is not
matching with the row from the table below? I think
I'm going mad!

#####################################
SQL Statement
#####################################

SELECT * FROM t_bell_schedule WHERE calendar_day =
'2004-04-12' AND start_time_minutes >= '1082374200'
AND end_time_minutes <= '1082375100';

#####################################
Current DB Data to match
#####################################

 calendar_day | period_letter | start_time_minutes |
end_time_minutes
--------------+---------------+--------------------+------------------
 2004-04-12   | B             |         1082374440 |  
    1082377320

#####################################
DB Structure 
#####################################

       Column       |            Type             |   
                               Modifiers
--------------------+-----------------------------+--------------------------------------------------------------------------------
 bell_schedule_uid  | integer                     |
not null default
nextval('public.t_bell_schedule_bell_schedule_uid_seq'::text)
 calendar_day       | date                        |
 period_letter      | character varying(4)        |
 period             | character varying(4)        |
 start_time         | time without time zone      |
 end_time           | time without time zone      |
 total_minutes      | integer                     |
 activestatus       | integer                     |
 datecreated        | timestamp without time zone |
 datemodified       | timestamp without time zone |
 start_time_minutes | integer                     |
 end_time_minutes   | integer                     |


Cheers,
Pete



	
		
__________________________________
Do you Yahoo!?
Yahoo! Photos: High-quality 4x6 digital prints for 25ยข
http://photos.yahoo.com/ph/print_splash



view thread (5+ messages)  latest in thread

Message-ID: <20040419203150.77559.qmail@web41112.mail.yahoo.com>
Permalink:  ../20040419203150.77559.qmail@web41112.mail.yahoo.com/
Also on:    postgresql.org/message-id/20040419203150.77559.qmail@web41112.mail.yahoo.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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: patkins2474@yahoo.com, pete@tkins.com
  Subject: Re: Can someone tell me why this statement is failing?
  In-Reply-To: <20040419203150.77559.qmail@web41112.mail.yahoo.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