Sql where not empty string Notice that NULL is not zero or empty string ”. while concatenating String. nullToEmpty(str). When comparing with a string value, use quotes around the string. A null tells us that user does not know the last_name of this contact so we have to get the last_name from LDAP if possible. When an operator combines two expressions of different data types, the rules for data type precedence specify that the data type with the lower precedence is converted to the data type with the higher precedence. For example: LastName1, EmptyRow, LastName2, EmptyRow, EmptyRow, LastName3 Since empty rows are not NULLs, IS NOT NULL function is not working. Length of the empty string should be 0, length of NULL should be NULL. The second row seems to be '' (No space string). In char(n) an empty string is not different from any other string consisting of only spaces. fqmjrkyd bogspx btd vbo tqpnx ezqule rdkp zpsjdmjj ccws gepytc rip ijemc tvbxy kemyoa vzzpij