X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 7DFBDD1DC74 for ; Tue, 20 Apr 2004 11:43:04 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 65599-05 for ; Tue, 20 Apr 2004 11:43:05 -0300 (ADT) Received: from bugs.unl.edu.ar (bugs.unl.edu.ar [168.96.132.208]) by svr1.postgresql.org (Postfix) with ESMTP id 1A7D2D1BB93 for ; Tue, 20 Apr 2004 11:43:01 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by bugs.unl.edu.ar (Postfix) with ESMTP id B372F11E1F; Tue, 20 Apr 2004 11:40:38 -0300 (ART) Received: from bugs.unl.edu.ar ([127.0.0.1]) by localhost (bugs [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09938-05; Tue, 20 Apr 2004 11:40:38 -0300 (ART) Received: from localhost (localhost [127.0.0.1]) by bugs.unl.edu.ar (Postfix) with ESMTP id 379E211E05; Tue, 20 Apr 2004 11:40:38 -0300 (ART) From: Martin Marques To: P A , pete@tkins.com Subject: Re: Can someone tell me why this statement is failing? Date: Tue, 20 Apr 2004 11:40:36 -0300 User-Agent: KMail/1.5.4 Cc: pgsql-sql@postgresql.org References: <20040419203150.77559.qmail@web41112.mail.yahoo.com> In-Reply-To: <20040419203150.77559.qmail@web41112.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200404201140.36332.martin@bugs.unl.edu.ar> X-Virus-Scanned: by amavisd-new-20030616-p7 (Debian) at unl.edu.ar X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200404/189 X-Sequence-Number: 17564 El Lun 19 Abr 2004 17:31, P A escribi=F3: > 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 =3D > '2004-04-12' AND start_time_minutes >=3D '1082374200' > AND end_time_minutes <=3D '1082375100'; start_time_minutes and end_time_minutes are integer data types, so don't=20 enclose the values in quotes. > start_time_minutes | integer | > end_time_minutes | integer | --=20 11:38:01 up 42 days, 16:05, 4 users, load average: 0.48, 0.61, 0.55 ----------------------------------------------------------------- Mart=EDn Marqu=E9s | select 'mmarques' || '@' || 'unl.edu.ar' Centro de Telematica | DBA, Programador, Administrador Universidad Nacional del Litoral -----------------------------------------------------------------