🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Combine data 2 records

#725
From: MrT
Date: Mon, 06 Aug 2007 02:08
39 lines
2159 bytes
Bill Todd wrote:
> Ok, I am lost.
> 
> 1) What database are you using?
> 
> 2) What is PROPERCASESTRING?
> 
> 3) What does the query in your latest message have to do with the
> question and example in your first message. I cannot see any connection.
> 
> 4) What is your real question?
> 


HI:

    Thanks. The SP that this is from iterates through the records and 
returns the data into TIBSQL and from that a delimited output for upload 
to website.

1) IB 6


2) UDF that lowercases string and uppercase first letter. similar to 
f_propercase I guess.


3)  My query returns mostly one record where the latest d1 and latest d2 
I am after is in the same record. The problem is when the d1 is in one 
record and the d2 is in a different record same Id. One will be in 2007 
record and the other in 2008 record, for instance. In this case I want 
to return

CAST(m."RENEW_DTE" AS VARCHAR(10)) from the 2007 record and
CAST(m2."CRDRPT_RNW" AS VARCHAR(10))  from  the 2008 record.

or or the reverse depending on which account was due first.

4) See 3 above.
Technical Details
Message-ID: <46b6744b@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!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> <46b6498f@newsgroups.borland.com> <46b65672$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: Sun, 05 Aug 2007 21:08:07 -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> <46b6498f@newsgroups.borland.com> <46b65672$1@newsgroups.borland.com>
In-Reply-To: <46b65672$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 12.65.138.197
Message-ID: <46b6744b@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1186362443 12.65.138.197 (5 Aug 2007 18:07:23 -0700)
Lines: 39
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail