🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.interbase.sql
Article #673

Birthdate Query

#673
From: Jason Summers
Date: Tue, 30 Oct 2007 03:39
15 lines
1674 bytes
Hello Everyone,

I have an Interbase database which stores Contacts, and one of the fields is 
the Birthdate, of type TIMESTAMP.  I need to be able to query all Contacts 
with birthdates in a particular season (Spring, Fall, Winter, Summer)

Since the years of the birthdates vary, I cannot do a simple  'where date > 
X and date < X'.   Is there a way where I can ignore the Year, and just 
query where Birthdate's Month/Date is of certain values?

If this cannot be done, I will add a field called 'Birth Month' and 'Birth 
Date', but it seems to be cleaner if I don't add this redundant data.

Thanks in advance,
- Jason 
Technical Details
Message-ID: <4726a766@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!eweka.nl!lightspeed.eweka.nl!194.134.4.77.MISMATCH!news2.euro.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 114a0e,d9969aee39c0cba7,start
X-Google-Attributes: gid114a0e,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "Jason Summers" <jason@grinc.org>
From: "Jason Summers" <jason@grinc.org>
Newsgroups: borland.public.interbase.sql
Subject: Birthdate Query
Date: Mon, 29 Oct 2007 22:39:01 -0500
Lines: 16
MIME-Version: 1.0
Content-Type: text/plain;
 format=flowed;
 charset="iso-8859-1";
 reply-type=original
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6000.16480
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6000.16545
NNTP-Posting-Host: 64.251.145.50
Message-ID: <4726a766@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1193715558 64.251.145.50 (29 Oct 2007 20:39:18 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!eweka.nl!lightspeed.eweka.nl!194.134.4.77.MISMATCH!news2.euro.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail