Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Dirk Emmermacher asked how to select rows with gebdat between (today - 6570) and (today - 10950) on a very old IDS 7.30 for an age-distribution report. Superboer showed an example using between today - 10000 units day and today - 5 units day. Art S. Kagel asked for version, platform and front-end details. No resolution appears in this thread (the reversed bounds were found in a related thread).
Auto-generated by Claude from the posts below — may be imperfect; read the full thread.
Hello list.
I'got a small problem with one report.
I have to write a report which results is an overview about age
distribution in one table
I try to use the if statement like
if gebdat between (today - 6570) and (today - 10950)
Gebdat is a date-type field.
How can get result a want to have?
IDS is an very old 7.30
Any ideas?
Thanks in advance for your friendly advices.
Best regards.
Dirk Emmermacher
dbaccessdemo7 <<!
N
!
dbaccess stores7 <<!
select * from orders
where order_date between today - 10000 units day and today - 5 unitsday
!
see you
Superboer.
emmermacher@hotmail.com schreef:
> Hello list.
>
> I'got a small problem with one report.
> I have to write a report which results is an overview about age
> distribution in one table
>
> I try to use the if statement like
> if gebdat between (today - 6570) and (today - 10950)
>
> Gebdat is a date-type field.
> How can get result a want to have?
> IDS is an very old 7.30
>
> Any ideas?
>
> Thanks in advance for your friendly advices.
>
> Best regards.
>
> Dirk Emmermacher
↪ replying to emmermacher@hotmail.com
Art S. Kagel — — source: Usenet: comp.databases.informix
emmermacher@hotmail.com wrote:
> Hello list.
We need SOME details:
Server version
Platform (OS & Hardware)
Front-end (ie: Esql/C, Perl-DBD/DBI, ISQL (Perform, ACE), I4GL, R4GL, ODBC,
PHP, JDBC, Stored Procedures, etc.)
Art S. Kagel
> I'got a small problem with one report.
> I have to write a report which results is an overview about age
> distribution in one table
>
> I try to use the if statement like
> if gebdat between (today - 6570) and (today - 10950)
>
> Gebdat is a date-type field.
> How can get result a want to have?
> IDS is an very old 7.30
>
> Any ideas?
>
> Thanks in advance for your friendly advices.
>
> Best regards.
>
> Dirk Emmermacher
>
Art S. Kagel wrote:
> emmermacher@hotmail.com wrote:
>> Hello list.
>
> We need SOME details:
>
> Server version
> Platform (OS & Hardware)
> Front-end (ie: Esql/C, Perl-DBD/DBI, ISQL (Perform, ACE), I4GL, R4GL,
> ODBC, PHP, JDBC, Stored Procedures, etc.)
>
> Art S. Kagel
>
>> I'got a small problem with one report.
>> I have to write a report which results is an overview about age
>> distribution in one table
>>
>> I try to use the if statement like
>> if gebdat between (today - 6570) and (today - 10950)
>>
>> Gebdat is a date-type field.
>> How can get result a want to have?
>> IDS is an very old 7.30
>>
>> Any ideas?
>>
>> Thanks in advance for your friendly advices.
>>
>> Best regards.
>>
>> Dirk Emmermacher
>>
Units?
This could be in years, or seconds :p
On Tue, 2006-11-07 at 13:51 -0500, Art S. Kagel wrote:
> Front-end (ie: Esql/C, Perl-DBD/DBI, ISQL (Perform, ACE), I4GL, R4GL, ODBC,
> PHP, JDBC, Stored Procedures, etc.)
You forgot Python ;)
-Carsten
Your privacy choices
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.