added datediff, like, in, having and fixed lowercase problem