C
Cam
Hello,
I have a query that return the following result below and would like to add
a row called "Spare" on program field. The Spare will be 5% of the total sum
of Hrs/mth. I don't know how to go about achieving this. The number of
program vary with diferent machines. The program are 373, 474, 676, 777 and
878, so would like to add Spare. Thanks
Sample:
WC Mach Program Hrs/mth
2MK 8610 373 12.5
2MK 8610 777 10.1
2MK 2600 474 05.4
2MK 2600 676 01.2
2MK 2600 878 15.4
Result Wanted:
WC Mach Program Hrs/mth
2MK 8610 373 12.5
2MK 8610 777 10.1
2MK 8610 Spare 1.13 ((12.5+10.1)*.05)
2MK 2600 474 5.4
2MK 2600 676 1.2
2MK 2600 878 15.4
2MK 2600 Spare 1.1 ((5.4+1.2+15.4)*.05)
I have a query that return the following result below and would like to add
a row called "Spare" on program field. The Spare will be 5% of the total sum
of Hrs/mth. I don't know how to go about achieving this. The number of
program vary with diferent machines. The program are 373, 474, 676, 777 and
878, so would like to add Spare. Thanks
Sample:
WC Mach Program Hrs/mth
2MK 8610 373 12.5
2MK 8610 777 10.1
2MK 2600 474 05.4
2MK 2600 676 01.2
2MK 2600 878 15.4
Result Wanted:
WC Mach Program Hrs/mth
2MK 8610 373 12.5
2MK 8610 777 10.1
2MK 8610 Spare 1.13 ((12.5+10.1)*.05)
2MK 2600 474 5.4
2MK 2600 676 1.2
2MK 2600 878 15.4
2MK 2600 Spare 1.1 ((5.4+1.2+15.4)*.05)