I have a script that gets the the current days processed records, but I would like a field that has the count of files processed.
Ultamtely I will need a SP that will take in the user ID as a param and show totals for each user.
The current SQL Code I have is thus.
This was cut/paste'd from SQL Designer.
Thanks
John Fuhrman
Ultamtely I will need a SP that will take in the user ID as a param and show totals for each user.
The current SQL Code I have is thus.
Code:
SELECT TOP (100) PERCENT dbo.tblTrackingTable.Tracking_ID, dbo.tblTrackingTable.EmployeeID,
dbo.tblEmployee.EmployeeFN + ' ' + dbo.tblEmployee.EmployeeLN AS EmployeeFullName, dbo.tblTrackingTable.MachineName,
dbo.tblTrackingTable.FileNumber AS NumOfFiles, UPPER(dbo.tblTrackingTable.BoxNumber) AS BoxNumber, UPPER(dbo.tblTrackingTable.FileNumber)
AS FileNumber, dbo.tblTrackingTable.TrackingDate
FROM dbo.tblTrackingTable FULL OUTER JOIN
dbo.tblEmployee ON dbo.tblTrackingTable.EmployeeID = dbo.tblEmployee.EmployeeID
WHERE (dbo.tblTrackingTable.TrackingDate IS NOT NULL) AND (dbo.tblTrackingTable.EmployeeID IS NOT NULL) AND (dbo.tblTrackingTable.FileNumber <> '')
AND (dbo.tblTrackingTable.BoxNumber <> '') AND (dbo.tblTrackingTable.FileNumber <> '.BOX.END.') AND
[b](dbo.tblTrackingTable.FileNumber = COUNT(dbo.tblTrackingTable.FileNumber))[/b]
ORDER BY dbo.tblTrackingTable.TrackingDate, dbo.tblTrackingTable.BoxNumber
This was cut/paste'd from SQL Designer.
Thanks
John Fuhrman