我想过滤关于实际OT(加班)小计的报告超过30个。我该怎么办?
以下是SQL Server的传递查询:
SELECT OT_Entry.App_ID AS OT_Entry_App_ID
, OT_Entry.EmpID
, OT_Entry.EmpName
, OT_Entry.[Pre-Approved_OT]
, OT_Entry.Actual_OT
, tblMain.App_ID AS tblMain_App_ID
, tblMain.Start_Date
, tblMain.End_Date
, tblMain.WO_Number
, tblMain.Plant_Section
, tblMain.Job_Category
, tblMain.[Maint_Area/Section]
, tblMain.[Group/Discipline]
, tblMain.Break_In
, tblMain.Requestor
, tblMain.Justification
, tblMain.Work_Activity
, tblMain.Approver
, tblMain.Request_Date
, EmpData.Position
, EmpData.Reporting_to
, EmpData.Company
, EmpData.Personnel_Type
, EmpData.Group
FROM EmpData INNER JOIN (tblMain INNER JOIN OT_Entry ON tblMain.[App_ID] = OT_Entry.[App_ID]) ON EmpData.EmpID = OT_Entry.EmpID;
以下是我的报告的截图