I have tried several ways to do this but cannot seem to figure it out.
Here is the last trial
Thanks
John Fuhrman
Here is the last trial
Code:
select count(distinct BoxNumber) As TtlBoxCount,
(Select count(*)
from dbo.tblTrackingTable
where TrackingDate > '9/20/2010'
and BoxNumber Like 'NBC%') as TTlFilesBox,
avg(TTlFilesBox)
From dbo.tblTrackingTable
where TrackingDate > '9/20/2010'
and BoxNumber Like 'NBC%'
Thanks
John Fuhrman