I would like to return 1 or 0 (or true or false, or true or null, or whatever is easiest) if a given column has any data. Regardless of whether this field has data, the other columns would still be returned. Is below the correct way? Thanks
SELECT varchar_field IS NOT NULL, some_other_fields
Try
if you want 0 when
varchar_fieldisntnullif you want 1 when
varchar_fieldisntnull