Article View: borland.public.interbase.sql
Article #676Re: Birthdate Query
From: Jason Summers
Date: Tue, 30 Oct 2007 04:23
Date: Tue, 30 Oct 2007 04:23
35 lines
2016 bytes
2016 bytes
Thanks for the reply Robin. I was actually typing up my last post, and when I finished, found that you had already replied. :) That was one fast reply! "Robin" <Robin@.com> wrote in message news:4726acbf$1@newsgroups.borland.com... > Jason Summers wrote: >> 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) > > Hi Jason, > > You can use EXTRACT. > > Eg, > > SELECT > EXTRACT(month FROM mydatefield), > EXTRACT(day FROM mydatefield) > > FROM > mytable > > etc... > > > Follow this link to see some working examples: > > http://www.interbase-world.com/en/articles/505.php > > Good luck! > > Robin.
Technical Details
Message-ID:
<4726b1f2$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!eweka.nl!lightspeed.eweka.nl!213.239.142.3.MISMATCH!feed.xsnews.nl!border-2.ams.xsnews.nl!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4726a766@newsgroups.borland.com> <4726acbf$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 114a0e,d9969aee39c0cba7 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 References: <4726a766@newsgroups.borland.com> <4726acbf$1@newsgroups.borland.com> In-Reply-To: <4726acbf$1@newsgroups.borland.com> Subject: Re: Birthdate Query Date: Mon, 29 Oct 2007 23:23:59 -0500 Lines: 36 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response 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: <4726b1f2$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1193718258 64.251.145.50 (29 Oct 2007 21:24:18 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!eweka.nl!lightspeed.eweka.nl!213.239.142.3.MISMATCH!feed.xsnews.nl!border-2.ams.xsnews.nl!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail