Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » DBISAM Technical Support » Support Forums » DBISAM SQL » View Thread |
Messages 1 to 9 of 9 total |
Capture detail data / Group By |
Tue, Oct 18 2011 3:56 AM | Permanent Link |
Petter Topp | Hi.
Is it possible to copy the value of a detail field that is "collapsed" with Group By into a Memo field. IOW - If the table contains 5 records (query shows the sum of these 5 in one record) I would like to save/list the "details" of the 5 records in a Memo field. Petter Dbisam 4.30 build 7 |
Tue, Oct 18 2011 8:17 AM | Permanent Link |
Robert Kaplan | "Petter Topp" <petter.topp@atcdata.no> wrote in message news:B32CFF81-B0C8-4E93-9354-506677E657D4@news.elevatesoft.com... > Hi. > > Is it possible to copy the value of a detail field that is "collapsed" > with Group By into a Memo field. > IOW - If the table contains 5 records (query shows the sum of these 5 in > one record) I would like to save/list the "details" of the 5 records in a > Memo field. > I don't know of a way to do this while you're running the aggregate function, maybe somebody else does, but you should be able to do it with a script as in (pseudocode) select id as gid, sum (amount) as gsum, cast('' as memo) gdetails into gtable from table group by 1; create index on gtable; update gtable set gdetails = gdetails + amount from gtable join table on id=gidl Robert |
Tue, Oct 18 2011 8:53 AM | Permanent Link |
Roy Lambert NLH Associates Team Elevate | Petter
First a sales pitch for ElevateDB - this is easy using LIST Back to reality. Until Tim introduced LIST in ElevateDB anytime I needed something like this I ended up using Delphi. If this is for a report then it may be possible to do something with the main query and a master-detail link. Roy Lambert [Team Elevate] |
Tue, Oct 18 2011 9:56 AM | Permanent Link |
Petter Topp | Hi Guys.
The need is actaually for an import routine - so I guess that I will go the scripting way.... As for ElevateDB, I already have the CS license - but never seem to get on top of my project to start "Elevate it" Thanks Petter "Petter Topp" skrev i nyhetsmeldingen: B32CFF81-B0C8-4E93-9354-506677E657D4@news.elevatesoft.com ... Hi. Is it possible to copy the value of a detail field that is "collapsed" with Group By into a Memo field. IOW - If the table contains 5 records (query shows the sum of these 5 in one record) I would like to save/list the "details" of the 5 records in a Memo field. Petter Dbisam 4.30 build 7 |
Wed, Oct 19 2011 11:56 AM | Permanent Link |
John Hay | > First a sales pitch for ElevateDB - this is easy using LIST
> You could always use the DBISAM 4 LIST Function <bg> John |
Wed, Oct 19 2011 1:24 PM | Permanent Link |
Roy Lambert NLH Associates Team Elevate | John
>You could always use the DBISAM 4 LIST Function <bg> I wondered about that. My DBISAM is stuck at 4.25 so I don't know about new features. Roy Lambert |
Wed, Oct 19 2011 1:50 PM | Permanent Link |
John Hay | Roy
> > I wondered about that. My DBISAM is stuck at 4.25 so I don't know about new features. > I refer you to a thread 5/5/10 in this group John |
Thu, Oct 20 2011 3:39 AM | Permanent Link |
Roy Lambert NLH Associates Team Elevate | John
>> I wondered about that. My DBISAM is stuck at 4.25 so I don't know about new features. >> > >I refer you to a thread 5/5/10 in this group Fair enough - I refer you to my reply "Shows how out of date I am. I didn't know that had been back ported." Why should I change my mind now? Roy Lambert |
Fri, Oct 21 2011 2:27 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Petter,
<< Is it possible to copy the value of a detail field that is "collapsed" with Group By into a Memo field. >> As John indicated, you can use the LIST aggregate function for this: http://www.elevatesoft.com/manual?action=viewtopic&id=dbisam4&product=delphi&version=7&topic=Functions -- Tim Young Elevate Software www.elevatesoft.com |
This web page was last updated on Monday, April 29, 2024 at 05:23 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |