April 05, 2019, 08:37 AMI ML
[WebFOCUS 8.1.05M] : Where vs Where Totals & Subtotals:Simple vs Subtotals:Recomputed
I am new in WebFOCUS and I am looking for a meaningful example where the results or outputs by Where vs Where Totals on one hand, and Subtotals: Simple vs Subtotals: Recomputed on the other hand are not the same.
Would you be so kind in pointing out an example, description, functionality, and limits of each of those instructions? I found that the techsupport is a little limited on this.
Thank you so much,
April 07, 2019, 05:24 PMWaz
Hi I ML,
Welcome to the forum,
I would suggest checking the documentation on WHERE V WHERE TOTAL and SUBTOTAL.
But simply WHERE is used to filter records and SUBTOTAL is used to create summary records in the report. Selection Based on Aggregate Values
April 08, 2019, 05:21 AMAddy
As Waz suggested documentaion on any topic is quite good for WF so do check that:
WHERE is filter
WHERE TOTAL is HAVING clause in SQL
SUBTOTAL - Summary based on a column or field e.g if you want to know the SALES for each country when using CAR master file you will use SUBTOTAL.
RECOMPUTE- When you have computed columns and want to recalculate the total lines. Eg when you have percentage calculations then if you just take the total then it will be more than 100 but if you use recompute it will recalculate you percentage on the total line.