in reply to Converting dates

I'm worried that your SQL is only SELECTing rows where tUpdate > tEnter, and yet you are doing the same test again in Perl.