Article View: borland.public.interbase.sql
Article #216Re: need advice about sql for data mining
From: Wayne Niddery (TeamB)
Date: Wed, 11 Jun 2008 16:32
Date: Wed, 11 Jun 2008 16:32
22 lines
1794 bytes
1794 bytes
"Isaac" <no@no.com> wrote in message news:484febae@newsgroups.borland.com... > when I use for select with date field I automatically begin from the first > of the table and the date in ascending ordered ? > > for select <date field> > into :v_date > do begin When deal with SQL servers, always assume it is your responsibility to request the order you want. Just include an order by: for select <date field> order by <date field> into :v_date Ascending is default, if you want descending, add "desc" following the field name. -- Wayne Niddery - TeamB (www.teamb.com) Winwright, Inc. (www.winwright.ca)
Technical Details
Message-ID:
<484ffe02$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!npeer03.iad!news.highwinds-media.com!news.glorb.com!feeder.erje.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<484db5e2@newsgroups.borland.com> <484febae@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 114a0e,b4be59b23378bfae X-Google-Attributes: gid114a0e,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Wayne Niddery \(TeamB\)" <wniddery@chaffaci.on.ca> Newsgroups: borland.public.interbase.sql References: <484db5e2@newsgroups.borland.com> <484febae@newsgroups.borland.com> In-Reply-To: <484febae@newsgroups.borland.com> Subject: Re: need advice about sql for data mining Date: Wed, 11 Jun 2008 12:32:03 -0400 Lines: 23 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.6001.18000 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18000 NNTP-Posting-Host: 24.137.214.213 Message-ID: <484ffe02$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1213201922 24.137.214.213 (11 Jun 2008 09:32:02 -0700) X-Authenticated-User: wniddery Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!npeer03.iad!news.highwinds-media.com!news.glorb.com!feeder.erje.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail