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