> April 2002 >Empno: 00001 >Day Leave >1 V >2 >3 S >4 S >5 T >. >. >. >. >. >. >30 > >>
select empId, ; year, ; month, ; DayNr, ; Leave, ; $0 as SummaryTotal ; from Table ; into cursor tmp ; union all ; select emp_id, ; year, ; month, ; 99, ; Leave, ; ntom(count(*)) ; from Table ; group by 1,2,3,4,5 ; && maybe having !empty(ntom(count(*))) order by 1,2,3,4,5 add a field to the report: SummaryTotal, suppress printing when zero report ...