🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.vdbase.data.sql
Article #677

Query Date Format

#677
From: Bradner/Klein
Date: Wed, 05 Aug 1998 00:00
22 lines
1172 bytes
I'm trying to use the criteria of the following xbase command in a SQL query
...

set filter to expir>{01/01/99} and expir<{01/01/02}

As written above, the statement works fine, showing records with expiration
dates both in the final year of this century and into the next.

My SQL version of this, however, doesn't work, returning no records at all
...

select * from mytable where expir>"01/01/99" and expir<"01/01/02"

What puzzles me is that ...

select * from mytable where expir>"01/01/99"

does return the records I'm looking for (without the outer-range limit),
both in this century and the next.

I tried "SET EPOCH TO 1930" but that had no effect. As usual I've run out of
ideas fast. Thanks for help.
Technical Details
Message-ID: <6qa89r$bdg16@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: ff5a1,81848bf899413727
X-Google-Attributes: gidff5a1,public
From: "Bradner/Klein" <p1554@mail.aai.arco.com>
Subject: Query Date Format
Date: 1998/08/05
Message-ID: <6qa89r$bdg16@forums.borland.com>
X-Deja-AN: 378253673
Organization: Another Netscape Collabra Server User
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4
Newsgroups: borland.public.vdbase.data.sql