• 2103? Lowell: You're ahead of your time. 🙂

    Also, it should be DATEPART(hh,PIT) <> 12 in the second part of the WHERE condition.

    ____________
    Just my $0.02 from over here in the cheap seats of the peanut gallery - please adjust for inflation and/or your local currency.