🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Combine data 2 records

#734
From: MrT
Date: Mon, 06 Aug 2007 23:58
22 lines
1726 bytes
Bill Todd wrote:
> MrT wrote:
> 
>> I can't CAST(MAX(m."RENEW_DTE") AS VARCHAR(10)) says invalid.
> 
> Is M.RENEW_DTE a DATE or a TIMESTAMP field?
> 
> Is your database dialect 1 or 3?
> 
> I still do not understand what you are trying to do. The query in your
> message does not use the MAX aggregate. I thought you were trying to
> find the maximum date.
> 

Date Field

Dialect 3

I will grab the value I want at this point:

CAST(F_MAXDATE(m2."CRDRPT_RNW", m3."CRDRPT_RNW") AS VARCHAR(10)) AS
"CR Renew"
Technical Details
Message-ID: <46b7a76a$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!newsgate.cistron.nl!xs4all!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <46b641b6@newsgroups.borland.com> <46b644a4$1@newsgroups.borland.com> <46b655fa@newsgroups.borland.com> <46b662de$1@newsgroups.borland.com> <46b679a5@newsgroups.borland.com> <46b68537@newsgroups.borland.com> <46b6a9b3@newsgroups.borland.com> <46b771aa$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 114a0e,509bc3ea097a54b
X-Google-Attributes: gid114a0e,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Mon, 06 Aug 2007 18:58:31 -0500
From: MrT <contact@heat-mi.org>
User-Agent: Thunderbird 1.5.0.12 (Windows/20070509)
MIME-Version: 1.0
Newsgroups: borland.public.interbase.sql
Subject: Re: Combine data 2 records
References: <46b641b6@newsgroups.borland.com> <46b644a4$1@newsgroups.borland.com> <46b655fa@newsgroups.borland.com> <46b662de$1@newsgroups.borland.com> <46b679a5@newsgroups.borland.com> <46b68537@newsgroups.borland.com> <46b6a9b3@newsgroups.borland.com> <46b771aa$1@newsgroups.borland.com>
In-Reply-To: <46b771aa$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 69.39.70.212
Message-ID: <46b7a76a$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1186441066 69.39.70.212 (6 Aug 2007 15:57:46 -0700)
Lines: 22
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!newsgate.cistron.nl!xs4all!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail