🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

getting dates without years

#73
From: Martin Holmes
Date: Tue, 13 Apr 1999 00:00
16 lines
1017 bytes
I have had trouble with the following code.  I can't seem to pass a
variable into an Extract statement.  Any help in getting dates out of
the table would be appreciated.  Things like birthdays which you only
want to enter once but come around every year..

select  name, reminder, event, eventdate, comment
from Grandma
where reminder<=:Reminder
and eventdate>=:Eventdate
or
event="Birthday"
and
(EXTRACT(Month from reminder) <=Extract(Month from :Reminder))
and
(EXTRACT(Month from eventdate) >= Extract(Month from :Eventday))
and...
Technical Details
Message-ID: <3713021E.7F03F77C@magma.ca>
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,551a6ab20f7b90b9,start
X-Google-Attributes: gidff5a1,public
From: Martin Holmes <smartpac@magma.ca>
Subject: getting dates without years
Date: 1999/04/13
Message-ID: <3713021E.7F03F77C@magma.ca>
X-Deja-AN: 465799922
Content-Transfer-Encoding: 7bit
Organization: SMartPac Software Ltd.
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0
Newsgroups: borland.public.vdbase.data.sql