I am having problems figuring out the rith way to do this.
Thanks
John Fuhrman
Code:
Select
BoxNumber,
FileNumber,
TrackingDate,
EmployeeID
From dbo.tblTrackingTable
Where (
Select
FileNumber,
Count(FileNumber) As 'Number of duplicates'
From dbo.tblTrackingTable
WHERE
(TrackingYear = '2011' and TrackingMonth >= '1')
AND (FileNumber <> '.BOX.END.')
AND (EmployeeID = 'jsmith')
Group By FileNumber
Having (Count(FileNumber) > 1)
)
Thanks
John Fuhrman