Skip site navigation (1) Skip section navigation (2)

Re: Can someone tell me why this statement is failing?

From: Martin Marques <martin(at)bugs(dot)unl(dot)edu(dot)ar>
To: P A <patkins2474(at)yahoo(dot)com>, pete(at)tkins(dot)com
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Can someone tell me why this statement is failing?
Date: 2004-04-20 14:40:36
Message-ID: 200404201140.36332.martin@bugs.unl.edu.ar (view raw or flat)
Thread:
Lists: pgsql-sql
El Lun 19 Abr 2004 17:31, P A escribió:
> 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';

start_time_minutes and end_time_minutes are integer data types, so don't 
enclose the values in quotes.

>  start_time_minutes | integer                     |
>  end_time_minutes   | integer                     |


-- 
 11:38:01 up 42 days, 16:05,  4 users,  load average: 0.48, 0.61, 0.55
-----------------------------------------------------------------
Martín Marqués        | select 'mmarques' || '@' || 'unl.edu.ar'
Centro de Telematica  |  DBA, Programador, Administrador
             Universidad Nacional
                  del Litoral
-----------------------------------------------------------------


In response to

pgsql-sql by date

Next:From: Edmund BaconDate: 2004-04-20 14:42:21
Subject: Re: Can someone tell me why this statement is failing?
Previous:From: Stijn VanroyeDate: 2004-04-20 07:26:03
Subject: Re: three-way join - solved

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group