Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » ElevateDB Technical Support » Support Forums » ElevateDB SQL » View Thread |
Messages 11 to 12 of 12 total |
Subtotal, total, grand total wanted |
Fri, Apr 30 2010 2:08 PM | Permanent Link |
Roy Lambert NLH Associates Team Elevate | David
Just getting at the data is no problem, a standard query is fast enough. The problem is 4 levels of totalling, getting it correctly ordered and well presented. Whilst I can no longer remember the syntax (its been over 16 years) I do remember that PICK/TCL was brilliant for this sort of reportage. Roy Lambert |
Fri, Apr 30 2010 3:23 PM | Permanent Link |
David Cornelius Cornelius Concepts | Right. The reason I suggest a separate table and a stored procedure is to
break the problem up into smaller chunks and to keep it all in SQL instead of some of it in SQL and some in Delphi. It's the complexity and the multiple levels of totaling that are making it difficult. In this "report" table, you could have a field called "level" and at each step in the stored procedure, you could set the level to a different number. Then the grouping and sub-totaling could easily be just by that level number. Anyway, just an idea. -- David Cornelius Cornelius Concepts "Roy Lambert" <roy.lambert@skynet.co.uk> wrote in message news:BFD4B8EF-80F1-4F40-AF3E-1FF48C5202B4@news.elevatesoft.com... > David > > > Just getting at the data is no problem, a standard query is fast enough. > The problem is 4 levels of totalling, getting it correctly ordered and > well presented. > > Whilst I can no longer remember the syntax (its been over 16 years) I do > remember that PICK/TCL was brilliant for this sort of reportage. > > Roy Lambert > |
« Previous Page | Page 2 of 2 | |
Jump to Page: 1 2 |
This web page was last updated on Saturday, May 4, 2024 at 12:54 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |