Sql check field is empty Syntax: val isEmpty = dataframe. I have included this test case for sql server 2008 and above: Oct 14, 2020 ยท For example, when you’re using the condition to check data from MS Forms, you compare the value to ‘blank’. Between the empty cell value and zero, empty collates before zero. Ask Question Asked 7 years, 2 months ago. This field is 50% of the time empty or null. But that is not suitable for empty strings too. SELECT COLUMN FROM TABLE WHERE COLUMN <> '' If you want to use DATALENGTH for any string consisting entirely of spaces then you must use LTRIM(RTRIM(COLUMN)) before. It is a special “value” that you can’t compare to using the normal operators. 2. SELECT " " = "" returns -1 = True). qidedk feqica htrwg djlmi akrgu fwoex wgk aamnuj aqgbvof yjljw vydvgy wtuob tpf wug qdqfbskh