我有一张桌子,看起来像:
罢工率基本上可以计算出 OrdersTaken - OrdersFrom,但我不想显示这两列,所以我只想要代码 + 罢工率调用
但是当我禁用显示时,它会提示我要求输入它的数字,所以它不再能够找到它了?
我的查询类似于:
SELECT T_Temp_RestrictedDiaryCalls.AccreditedDomainCode,
Count(T_Temp_RestrictedProductSalesHistory.CustomerCode)
AS OrdersTaken, qry_TargetReports.CountOfCustomerCode
AS OrdersFrom, [OrdersTaken]-[OrdersFrom]
AS [Strike Rate (Calls)]
FROM qry_TargetReports
INNER JOIN (T_Temp_RestrictedDiaryCalls
INNER JOIN T_Temp_RestrictedProductSalesHistory
ON (T_Temp_RestrictedDiaryCalls.CallDate = T_Temp_RestrictedProductSalesHistory.EntryDate)
AND (T_Temp_RestrictedDiaryCalls.CustomerCode = T_Temp_RestrictedProductSalesHistory.CustomerCode))
ON qry_TargetReports.AccreditedDomainCode = T_Temp_RestrictedDiaryCalls.AccreditedDomainCode
GROUP BY T_Temp_RestrictedDiaryCalls.AccreditedDomainCode, qry_TargetReports.CountOfCustomerCode;
但老实说,MsAccess 为我生成了它。我只需要一种方法来隐藏两列,同时仍然计算总和,干杯。