• thanks so much, that seems to work!

    I had to change it to:

    where

    dateTimeOrigination >= @StartInt

    AND dateTimeOrigination <= @EndInt

    AND (finalcalledpartynumber = '386' OR callingPartyNumber = '386')

    to get it to work correctly.

    Also, in the conversion, is it suposed to be -4 or -5?

    select @StartInt = datediff(second, dateadd(hour, -5, '1/1/1970'), @StartDateTime),