I am using the following SQL Statement for a query:
SELECT Sum(IIf([Development Source]=[P1 Production Source],[Target Cost],0)) AS CriteriaCost, Sum(qry_main_tbl_data.[Target Cost]) AS [SumOfTotal Cost], [CriteriaCost]/[SumOfTotal Cost] AS Percent_Development_Source, qry_main_tbl_data.[Engine Model]
FROM qry_main_tbl_data
GROUP BY qry_main_tbl_data.[Engine Model]
HAVING (((qry_main_tbl_data.[Engine Model]) Is Not Null));
My question is that for the Engine Model there are four different results. I have 810, 810/MRJ Common, BA, MRJ. Is there a way to add the data for 810/MRJ Common to 810 and MRJ and in the final results I only have three engine model which will be 810, BA and MRJ.
SELECT Sum(IIf([Development Source]=[P1 Production Source],[Target Cost],0)) AS CriteriaCost, Sum(qry_main_tbl_data.[Target Cost]) AS [SumOfTotal Cost], [CriteriaCost]/[SumOfTotal Cost] AS Percent_Development_Source, qry_main_tbl_data.[Engine Model]
FROM qry_main_tbl_data
GROUP BY qry_main_tbl_data.[Engine Model]
HAVING (((qry_main_tbl_data.[Engine Model]) Is Not Null));
My question is that for the Engine Model there are four different results. I have 810, 810/MRJ Common, BA, MRJ. Is there a way to add the data for 810/MRJ Common to 810 and MRJ and in the final results I only have three engine model which will be 810, BA and MRJ.