方法一、单独写一条函数公式行列匹配
方法二、SELECT [考勤明细_明细表].[姓名],COUNT(CASE WHEN[考勤明细_明细表].[迟到]> 0 THEN [考勤明细_明细表].[迟到] END ) OVER(PARTITION BY [考勤明细_明细表].[姓名] ) FROM [考勤明细_明细表]
方法一、单独写一条函数公式行列匹配
方法二、SELECT [考勤明细_明细表].[姓名],COUNT(CASE WHEN[考勤明细_明细表].[迟到]> 0 THEN [考勤明细_明细表].[迟到] END ) OVER(PARTITION BY [考勤明细_明细表].[姓名] ) FROM [考勤明细_明细表]
tony-zyh