Article View: borland.public.interbase.sql
Article #722Re: Combine data 2 records
From: MrT
Date: Sun, 05 Aug 2007 23:58
Date: Sun, 05 Aug 2007 23:58
21 lines
1317 bytes
1317 bytes
Bill Todd wrote: > SELECT ID, MAX(D1) AS D1, MAX(D2) AS D2 FROM ATABLE > GROUP BY ID > > Is that what you want? > Hi: When I do: select id, max(CRDRPT_RNW) from mempay2 where id = 21 I get invalid column reference but this: select max(id), max(CRDRPT_RNW) from mempay2 where id = 21 no error?????
Technical Details
Message-ID:
<46b655fa@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<46b641b6@newsgroups.borland.com> <46b644a4$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 18:58:47 -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> In-Reply-To: <46b644a4$1@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 69.39.70.226 Message-ID: <46b655fa@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1186354682 69.39.70.226 (5 Aug 2007 15:58:02 -0700) Lines: 21 Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail X-Original-Bytes: 1161