Very interesting result.
You fall in timeout even with CallbackComment IS NULL !!!!!
so single quotes can't be part of the game.
So this should also work
SELECT LENGTH(CallbackComment) FROM SQ.CBPhoneResult_View WHERE PhoneDateODBC = '2018-04-09' AND CallbackComment IS NOT NULL
and this too
SELECT LENGTH(CallbackComment), CallbackComment FROM SQ.CBPhoneResult_View WHERE PhoneDateODBC = '2018-04-09' AND CallbackComment IS NOT NULL
This will indicate that some empty (NULL) element is causing the troubles.
It might make sense to initialize all NULL CallbackComments with something.
- Log in to post comments

