Re: Subtotals in REPORT...
Posted in 1996
Hannah Sobie Fiabema wrote:
>
> Gurus,
> I am trying to generate this report. The SELECT is:
>
>
> SELECT caseNo, ....
> FROM table
> ORDER BY caseNo[6,8]>
> In the report I want subtotals group by those three bytes in caseNo.
> My statement is : AFTER GROUP OF xRec.caseNo[6,8] ... this proves to be
> a problem, it generates a syntax error.
> Is there an elegant solution or will I have to use brute force to achieve
> the desired result?
>
> Thanks in adv.
> Please respond to kgl@eagle.dol-esa.gov
Well,
you can use a temp table where you first select your data and apply your
report on data selected from the temp table.
select caseno[6,8] caseno_6_8, ...
from table
into temp ttt
select ...
from ttt
group by caseno_6_8
order by caseno_6_8
Now you can use in your report
AFTER GROUP OF xRec.caseno_6_8
HTH
Tolis
--
+---------------------------------------------------------------------+
| V+K Relational Solutions email: tvarnas@compulink.gr |
| Deligiorgi 26 tvarnas@orbit.de |
| 546 42 Thessaloniki Voice: (30) 31 820270 |
| Greece Fax: (30) 31 865463 |
+---------------------------------------------------------------------+